﻿<?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 » WinForms (How do I?)  » BrowseResultsLayout question...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 23 Sep 2026 22:25:39 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8106.aspx</link><description>[img]http://www.starktruss.com/images/uploadpics/browsedialog.jpg[/img]&lt;br&gt;
&lt;br&gt;
Based on the picture above is there any way that I can resolve the LocationID for LocationNames? &lt;br&gt;
&lt;br&gt;
I love the fact that I can do it in the SearchFields but it would be really helpful to do it in the ResultsLayout also.&lt;br&gt;
&lt;br&gt;
Thanks</description><pubDate>Fri, 13 Apr 2007 19:30:33 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8112.aspx</link><description>It looks good.&amp;nbsp; It is hard for me to tell how you are retrieving the data from within the event now, but the best and fastest way (when not included in the SELECT of course) to retrieve data is by using scalar methods.&amp;nbsp; If you place a packet sniffer on the machine executing the query when using a scalar method, you will see that there is VERY little code that goes across the line and only a single value that comes back....thus it is very fast.&amp;nbsp; I am glad that you got it working!&amp;nbsp;:)</description><pubDate>Fri, 13 Apr 2007 19:30:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8111.aspx</link><description>Here is my revised code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.LocationsBO1.Seek("LocationID=" &amp;amp; .POLocationID) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Values(3).DisplayValue = Me.LocationsBO1.LocationName&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.ProcessBO1.Seek("ProcessID=" &amp;amp; .POProcessID) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Values(2).DisplayValue = Me.ProcessBO1.ProcessName&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;It's MUCH faster ;-)&lt;/P&gt;&lt;P&gt;Let me know if you think there is a more efficient approach. Thanks!&lt;BR&gt;</description><pubDate>Fri, 13 Apr 2007 15:44:46 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8110.aspx</link><description>That's awesome! I got it to work. ;-) Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With DirectCast(e.BusinessObject, PurchaseOrdersBO)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using loBO As New LocationsBO&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loBO.FillByLocationID(.POLocationID)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Values(3).DisplayValue = loBO.LocationName&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using loBo As New ProcessBO&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loBo.FillByProcessID(.POProcessID)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Values(2).DisplayValue = loBo.ProcessName&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;My only concern is that I am making a round trip to the database twice per row, which depending on the number of records returned seems to significantly impact performance. So I'm going to noodle with a way to make it faster.&lt;/P&gt;&lt;P&gt;I've thought about dropping copies of the Location and Process BO on the form and fill them on FormLoad... then I can just lookup the information based on a BO that has already been filled. Now I just need to figure out how to query filled BOs. :-)&lt;BR&gt;</description><pubDate>Fri, 13 Apr 2007 15:30:22 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8109.aspx</link><description>No problem ;)&amp;nbsp; Let me know if you get stuck.</description><pubDate>Fri, 13 Apr 2007 14:50:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8108.aspx</link><description>Thanks, I'm going to look it up right now.&lt;/P&gt;&lt;P&gt;Sometimes the hardest part is knowing WHERE to look. ;-) Thanks for taking the time to point me in the right direction.</description><pubDate>Fri, 13 Apr 2007 14:43:28 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: BrowseResultsLayout question...</title><link>http://forum.strataframe.net/FindPost8107.aspx</link><description>Yes.&amp;nbsp; The BrowseDialog operates the exact same as a ListView in this fashion.&amp;nbsp; You will set the results field to be populated through an event instead of a formatted string.&amp;nbsp; Then in the RowPopulating event you will set the column to the desired value.&amp;nbsp; There is quite a bit of documentation regarding the BrowseDialog and the RowPopulating event.</description><pubDate>Fri, 13 Apr 2007 14:25:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>