﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » FillByPrimaryKey weird behavior</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 07:24:23 GMT</lastBuildDate><ttl>20</ttl><item><title>FillByPrimaryKey weird behavior</title><link>http://forum.strataframe.net/FindPost9990.aspx</link><description>I have a base form, on which I am setting the form's business object, and calling FillByPrimaryKey during the Form_Activated event.&lt;/P&gt;&lt;P&gt;This has usually worked fine for me except in the instance I am looking at today which has me a little stumped.&amp;nbsp; On my form some values are appearing correctly and some are not.&amp;nbsp; So, I stepped to the line in the code where the Fill is happening to check the contents of the BO.&amp;nbsp; Well, the first time it's called the Fill only retrieves some of the values...But if I execute that same exact line (FillByPrimaryKey) over again with no action between the two calls it returns back all of my values correctly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, basically...if I call FillByPrimaryKey once it returns back some but not all of my values, some are still zeroes or blanks.&amp;nbsp; If I recall it a second time directly after calling it the first, it fills everything correctly.&lt;/P&gt;&lt;P&gt;I realize this sounds stupid but I have done it several times now.&amp;nbsp; I have no idea what could be causing this, so if you guys have any idea or could just point me to some things to check that would be great.&amp;nbsp; Thanks!</description><pubDate>Thu, 05 Jul 2007 14:53:59 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: FillByPrimaryKey weird behavior</title><link>http://forum.strataframe.net/FindPost9991.aspx</link><description>OK....I am going to smack myself now.&amp;nbsp; I knew something weird was going on.&amp;nbsp; I checked for any events that could have possibly been getting raised with the Fill happened and finally found a Navigated event that was calling some other code.&amp;nbsp; Anyway, about 5 levels deeper it was calling some Multilingual code which had a bug in it and was changing the values of the edit controls.&amp;nbsp; I knew it would end up being my bug, I just didn't know where to look!&amp;nbsp; I'm glad I finally stumbled across it.&amp;nbsp;</description><pubDate>Thu, 05 Jul 2007 14:53:59 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item></channel></rss>