﻿<?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  » Browse Dialogue Problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 17 May 2026 14:37:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1312.aspx</link><description>When setting up a browse dialogue and a record is returned, select the record and click okay. This takes you to the maintenance window with the selected record active. However if you now movenext etc on the one pk field update the rest of the test boxes stay as is. Did i do something wrong or is this a bug.</description><pubDate>Thu, 08 Jun 2006 11:51:44 GMT</pubDate><dc:creator>Wayne Van Rooyen</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1463.aspx</link><description>No problem.</description><pubDate>Thu, 08 Jun 2006 11:51:44 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1461.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;That fixed the problem:) &amp;nbsp;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Thu, 08 Jun 2006 11:16:23 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1448.aspx</link><description>I have it fixed, Larry, and I should have the update available around the time that you get into the office (in a couple of hours).</description><pubDate>Thu, 08 Jun 2006 08:41:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1445.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;Any estimate of when a fix will be available? If it's going to be awhile I'll go back to v1.4&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Wed, 07 Jun 2006 17:07:55 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1394.aspx</link><description>I think I figured it out, Larry, the ListChanged event is being fired too soon (before the record has actually been initialized).&amp;nbsp; I'm working on a fix right now.</description><pubDate>Mon, 05 Jun 2006 13:23:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1392.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;A red error window is never displayed. Attached is a screen shot with the stack trace associated with the error.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Mon, 05 Jun 2006 11:26:44 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1379.aspx</link><description>When it gives you that error for each field, do you get the red error window?&amp;nbsp; I'm wondering if the stack trace within that error window contains a call to "CurrencyManager.ListChanged" or "CurrencyManager.OnListChanged."&amp;nbsp; .NET might be trying to do something when the internal DataTable changes rather than waiting for the row to be initialized.</description><pubDate>Sun, 04 Jun 2006 21:13:01 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1368.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;It took me a few minutes to get back to you since I had to re-install v1.41.&lt;/P&gt;&lt;P&gt;Continuing just brings up the same error for the next field and so on. Once I've cycled through all the fields the maint form is displayed and I'm able to enter the data and save the record.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Sat, 03 Jun 2006 14:52:43 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1364.aspx</link><description>Hehe, I was just replying Larry :)&amp;nbsp; &lt;/P&gt;&lt;P&gt;When you get the exception in your program, and the .NET unhandled exception dialog pops up, press "Continue" on your debug and you should get the red "Application Error" window that will have a complete list of the exceptions and inner exceptions and the stack traces of all of the exceptions concatenated together.&amp;nbsp; That should give me a clue where it's coming from.&amp;nbsp; You can copy/paste the content of that window and post it here.</description><pubDate>Sat, 03 Jun 2006 14:13:55 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1363.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;Whatever is causing the problem appears to have been introduced in v1.41. I moved the code back to version 1.4 and everything works as expected.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Sat, 03 Jun 2006 14:10:42 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1358.aspx</link><description>Ben. &lt;/P&gt;&lt;P&gt;On both my test BO and the actual application I'm coding the AllowNullValueOnNewRow on the BO is set to False. If it helps, when receiving this error the BO's&amp;nbsp;set-default-values code never gets executed. It fails right after retrieving the BO's FieldDbTypes.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Fri, 02 Jun 2006 17:20:41 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1357.aspx</link><description>Check the "AllowNullValues" property on the business object and make sure it's False.&amp;nbsp; If that property is set to True, then the business object will not initialize the values within a new row.</description><pubDate>Fri, 02 Jun 2006 17:00:58 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1356.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;Correct me if I'm&amp;nbsp;wrong but I was under the impression that the OM alternate values for null was to eliminate problems where NULL data was returned from the database. In this case I'm adding a new row. Since I don't have the source for 1.41 I'm not able to step through all of the code but what I've noticed is that in the cases where I'm receiving the errors is that fileds that would automatically be set to a non null value (even if they were not configured to do so in OM) for a new row are not being set. &lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Fri, 02 Jun 2006 16:58:50 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1355.aspx</link><description>Oh, the infamous DBNull.Value...&amp;nbsp; basically, you're getting that during the Get of your property (just like your screenshot says).&amp;nbsp; The DBNull is a special object type that is used to represent a NULL value in the database.&amp;nbsp; If a field can contain null values, then you'll need to configure that field through the BOMapper to either "Return Alternate On Null" or "Use Nullable Generic" (the generic can only be used with value types (no strings)).&amp;nbsp; Your best bet would be to either return "Nothing" or "String.Empty" on a null value.&amp;nbsp; That will fix your problem.&amp;nbsp;</description><pubDate>Fri, 02 Jun 2006 16:44:54 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1354.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Ben,&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Thanks for the explanation of the warning message. I’ve attached a couple of screen shots. The two field sample I’m using is a stripped down sample of a more complex object. While that form includes an enum bound combo box it was a string property that was getting the same error. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;In stepping through the code I noticed that when “New” was clicked without first doing a browse, any fields that were not set to allow null in OM were automatically set to default non-NULL values. When a Browse was done and rows retrieved prior to clicking on “New’ the fields in the BO were not automatically set to defaults. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;/SPAN&gt;</description><pubDate>Fri, 02 Jun 2006 16:32:04 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1353.aspx</link><description>The warning means that you have one or more fields that have been customized on the business object that have been "removed" from the business object meaning this:&lt;/P&gt;&lt;P&gt;1) MyBO's SQL table has a field called "field1"&lt;/P&gt;&lt;P&gt;2) You customize "field1" to, say, trim the value.&lt;/P&gt;&lt;P&gt;3) You change the structure of the SQL table so that "field1" no longer exists (or was renamed).&lt;/P&gt;&lt;P&gt;4) The BOMapper thinks the field disappeared, but the customization record still exists within the BOMapper.&lt;/P&gt;&lt;P&gt;So, the warning is just telling you that not all of the fields that you customized are being created on the business object.&lt;/P&gt;&lt;P&gt;As for your other error, can you post the red error message that contains the stack trace... might tell us where that exception is being thrown from :)</description><pubDate>Fri, 02 Jun 2006 15:56:12 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1352.aspx</link><description>The field has been customized to the enumeration type in object mapper. I think something else is going on. Also attached is a screen shot from OM that I get when I do a "Rebuild All" after customizing one BO. What does the warning mean?&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Fri, 02 Jun 2006 15:50:19 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1351.aspx</link><description>You get the InvalidCastException when the combo box is populated using an enumeration and the bound field property on the business object is not typed as the same enumeration.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When you use an enumeration to populate a combobox, the SelectedValue (which is what the combobox will bind to by default) actually contains enumeration values, not integer values.&amp;nbsp; So, to bind to that combobox, you'll need to go to the BOMapper and customize the field to return the enumeration value rather than an integer.&amp;nbsp; &lt;/P&gt;&lt;P&gt;If you don't want to customize the field, you'll have to populate the combo manually, or it will continue to throw the InvalidCastException :(</description><pubDate>Fri, 02 Jun 2006 15:36:27 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1350.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;I having a similar problem; getting an InvalidCastException using version 1.41. I have a standard SF maint. form. On the form I have two controls, a textbox and combo box. The combo box is populated by an enumeration and is bound to the BO. The text box is bound to a string property on the BO. If I open the maintenance form and click on “New” I can add a new record with no error. However if I click on browse, retrieve some records and then click “New” I get the InvalidCastException. If I unbind the combo box from the BO everything works fine. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;</description><pubDate>Fri, 02 Jun 2006 15:22:53 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1322.aspx</link><description>Yes, I just fixed that problem... it will be corrected in the next update.&lt;/P&gt;&lt;P&gt;As for the problem of the controls not refreshing when the business object is navigated, if you can reproduce it, let me know, and ZIP your solution and post it here on the forum.</description><pubDate>Thu, 01 Jun 2006 11:03:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1321.aspx</link><description>HI,&lt;/P&gt;&lt;P&gt;I was using the Standard maintenance form, i followed the tutorial from the help file. I dont see a tutorial in vb that conforms to the step by step in the help manual so i cant test it against my example. I will start again and see if i can reproduce it. &lt;BR&gt;&lt;BR&gt;PS: The Full sample provided in vb called "StrataFrameSample.sln" Click Customer Maintenenance then "Browse" then "Search" and double click on a returned record. Produces error&lt;BR&gt;&lt;BR&gt;System.InvalidCastException was unhandled by user code&lt;BR&gt;&amp;nbsp; Message="Specified cast is not valid."&lt;BR&gt;&amp;nbsp; Source="StrataFrameSample"&lt;BR&gt;&amp;nbsp; StackTrace:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at StrataFrameSample.CustomersBO.get_cust_phonedaytype() in C:\Program Files\MicroFour\StrataFrame\VB.NET Samples\WinForms Sample\StrataFrameSample\Business Objects\CustomersBO.Designer.vb:line 548&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at StrataFrameSample.CustomersBO.Field_cust_phonedaytype_Descriptor.GetValue(Object component) in C:\Program Files\MicroFour\StrataFrame\VB.NET Samples\WinForms Sample\StrataFrameSample\Business Objects\CustomersBO.Designer.vb:line 1291&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.BindToObject.GetValue()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Binding.PushData(Boolean force)&lt;BR&gt;&lt;BR&gt;Regards Wayne</description><pubDate>Thu, 01 Jun 2006 10:58:39 GMT</pubDate><dc:creator>Wayne Van Rooyen</dc:creator></item><item><title>RE: Browse Dialogue Problem</title><link>http://forum.strataframe.net/FindPost1316.aspx</link><description>Is this the functionality you're getting in the sample, or is this one of your applications?&amp;nbsp; And are you using a standard maintenance form, or the DevExpress maintenance form?&amp;nbsp; When you select the record from the browse and return to the calling form, all of the records returned from the browse will be returned to the dataset, and the current record will be selected.&amp;nbsp; So, yes, when you navigate after a browse, the rest of the fields should be updating.</description><pubDate>Thu, 01 Jun 2006 08:37:16 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>