﻿<?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?)  » Pulling additional data from the BO used as datasource for Combobox</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 08 Sep 2026 09:03:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Pulling additional data from the BO used as datasource for Combobox</title><link>http://forum.strataframe.net/FindPost24775.aspx</link><description>As I understand it once a cbo is populated from a BO there is no longer any connection - i.e. there is no record pointer moving in the BO in conjunction with the SelectedValueChanged on the CBO.&lt;br&gt;
&lt;br&gt;
The "data" in the cbo itself consists only of the Value and the Display.&lt;br&gt;
&lt;br&gt;
So, in the selectedvaluechanged I want to sync the BO so that I can refer to it in code after a cbo selection and get other values in that row in the lookup table.&lt;br&gt;
&lt;br&gt;
I can think of lots of ways to do it - seekbyprimarykey(me.cbo.selectedvalue) would get me to the right row.  At that point I suppose I could copy the row data to a property defined as a datarow.&lt;br&gt;
&lt;br&gt;
But ideally, I'd like to have a property with strongly typed properties ( i.e. a one record BO ) that I could refer to as lookup.field5  for a value that corresponds to another column in the BO.&lt;br&gt;
&lt;br&gt;
I'd probably do that with LINQ &lt;br&gt;
&lt;br&gt;
But I'd like to make sure I'm not just going brain dead on something already wired into the framework for this fairly common task ???&lt;br&gt;
&lt;br&gt;
Suggestions ?&lt;br&gt;</description><pubDate>Wed, 30 Sep 2009 08:55:42 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Pulling additional data from the BO used as datasource for Combobox</title><link>http://forum.strataframe.net/FindPost24778.aspx</link><description>[quote][b]Charles R Hankey (09/30/2009)[/b][hr]Somehow last night it all seemed more complicated than it does this morning :)  I have to start knocking off from work after dinner ...[/quote]&lt;br&gt;
&lt;br&gt;
You are welcome Charles.  I have had the same feeling many times (just read some of my post :D).  I also need some time off, but one of my project is currently under heavy beta testing, plus incorporating AppLife Update, Licensing Manager and Obfuscator add a bit of happiness to the mix :hehe:</description><pubDate>Wed, 30 Sep 2009 08:55:42 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Pulling additional data from the BO used as datasource for Combobox</title><link>http://forum.strataframe.net/FindPost24777.aspx</link><description>Thanks, Edhy.  Yes, that does seem to be the most straightforward way to handle it and it is the approach I've been taking so far.  I was just wondering if there was something I was missing for keeping them in sync.  Somehow last night it all seemed more complicated than it does this morning :)  I have to start knocking off from work after dinner ...&lt;br&gt;</description><pubDate>Wed, 30 Sep 2009 08:49:14 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Pulling additional data from the BO used as datasource for Combobox</title><link>http://forum.strataframe.net/FindPost24776.aspx</link><description>Hi Charles,&lt;br&gt;
&lt;br&gt;
Whenever I need to use or make reference to a lookup field other than selected value from combobox or listview, I use the following configuration for the combobox and the listview:&lt;br&gt;
&lt;br&gt;
1- Add an instance of the lookup data BO in the form.&lt;br&gt;
2- Configure the combobox or the listview to use the CopyDataFrom.... population so the lookup data will always be available to be used.&lt;br&gt;
3- In the case of the listview there is a property to keep it in sync with the assigned BO and for the combobox you can use the BO.SeekToPrimaryKey(combobox.SelectedValue), of course check that the combobox.SelectedValue is not Nothing.</description><pubDate>Wed, 30 Sep 2009 01:12:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>