﻿<?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 » Business Objects and Data Access (How do I?)  » Browse Dialog Question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 02 May 2026 11:22:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost32116.aspx</link><description>I ran into this problem today. I created a Browse Dialog and it would return search results just fine. But when I selected an item from the middle of the results, the records that was returned to the parent form was always the first item in the search results. I was banging my head stepping through the SF source until I realized (by seeing that SelectedPrimaryKey property was empty) that the Browse Dialog probably needs to know what the what the primary key column is. And, if you are using a view to populate the business object, which I am, that you need to explicitly define it in the BO Mapper ("Override Primary Key Specification").&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;So anyone running into this problem in the future, check the the BO Mapper, you may have neglected to set the primary key so that the Browse Dialog know how to Seek to the selected row internally.&amp;nbsp;</description><pubDate>Thu, 20 Jun 2013 14:41:53 GMT</pubDate><dc:creator>Govinda Berrio</dc:creator></item><item><title>Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4734.aspx</link><description>I am using the following code to populate a browse dialog of possible zip code for a city. The problem I am having is that the record pointer does not seem to move to the selected city/zip combination after the browse intead it is sitting on the first record of the browse resultd for that city. I would think the record pointer of the BO would be set on the record selected from the browse results dialog instead of the first record of the result set. any ideas on whats going on&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;''' &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;''' Populates a Browse Dialog of Possible ZipCodes For a City&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;''' &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;/summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;''' &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;param name="sender"&amp;gt;&amp;lt;/param&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;''' &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;param name="e"&amp;gt;&amp;lt;/param&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;''' &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; ShowZipCodes(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; System.Windows.Forms.KeyEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;FONT size=2&gt; txtjscity.KeyDown&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; e.KeyCode = Keys.Enter &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ZipCodeDialog.SearchFields.Item(0).InitialValue = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.txtjscity.Text.Trim&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ZipCodeDialog.ShowDialog(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;FONT size=2&gt;) = Windows.Forms.DialogResult.OK &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.txtjscity.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ZipCodesBO1.CITY&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.txtjsstate.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ZipCodesBO1.STATE&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.txtjszip.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ZipCodesBO1.ZIP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Else&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'Nothing was Selected-- ///*TODO-- Do we want to do anything here? &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&amp;nbsp;</description><pubDate>Thu, 20 Jun 2013 14:41:53 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4772.aspx</link><description>That may be what happened. I did some renaming awile back and just may not have noticed that this was not behaving properly.&lt;/P&gt;&lt;P&gt;I am trying to get ready for a demo this&amp;nbsp;friday and am flushing out all the little problems that I probably&amp;nbsp;didn't notice before. So it makes sense that some things that may have worked before&amp;nbsp;could&amp;nbsp;be broken because I renamed something&amp;nbsp;and did not get a compiler error so never thought to look at it. &lt;/P&gt;&lt;P&gt;Well&amp;nbsp;I have the rest of the week to find&amp;nbsp;any more of these&amp;nbsp;:D&amp;nbsp;</description><pubDate>Mon, 27 Nov 2006 09:07:15 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4770.aspx</link><description>Configuring the browse dialog generates quite a bit of code within the designer file.&amp;nbsp; Sometimes, if you rename a business object, or rename the business object class, you have to go back to the browse dialog and reset a few properties to get them to work properly... you never know.</description><pubDate>Mon, 27 Nov 2006 08:36:09 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4766.aspx</link><description>I don't know what the problem was&amp;nbsp;I looked to everything a few times but deleting the Browse Dialog and re-adding and reconfiguring did the trick. Not sure what the issue was but that fixed it</description><pubDate>Mon, 27 Nov 2006 07:53:45 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4765.aspx</link><description>I just added to same logic to another form and it does work as expected. I must have something screwed up on the first form.</description><pubDate>Mon, 27 Nov 2006 07:42:20 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4764.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;That is what&amp;nbsp;I am saying when I select a record by hitting the ok button the Bussiness object that is&amp;nbsp;set as the BO to Populate always returns index 0 or the first record. I know that it should return the selected row but&amp;nbsp;for whatever reason it is always returning row 0. So somewhere I have something screwy and was hoping you might have an idea of where I could look.</description><pubDate>Mon, 27 Nov 2006 07:32:38 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Question</title><link>http://forum.strataframe.net/FindPost4735.aspx</link><description>Are you saying the when you click the OK button in the browse, the BO set on to the BusinessObjectToPopulate property on the BrowseDialog is pointing to a record other than what was selected in the results list in the browse?&amp;nbsp; I have never seen this or even heard of it???&amp;nbsp;:ermm: When you click the OK button in the BrowseDialog, it will populate and set the CurrentRowIndex of the business object set in the BusinessObjectToPopulate property to the RowIndex that was selected in the Results list in the browse.&lt;/P&gt;&lt;P&gt;If you are wanting some type of incremental search or to dynamically select the&amp;nbsp;results index&amp;nbsp;within the BrowseDialog itself, this functionality does not exist at the moment.</description><pubDate>Wed, 22 Nov 2006 12:23:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>