Access ComboBox internal data values


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
When using a ComboBox to select a lookup value, sometimes, you need to update more than one field in the form with values from the lookup.

Is there a way to access the values of the data in the Internal Combobox BO? or should we just use the PK field returned by the BindingField to look for the data again manually?

Edhy Rijo

Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
I hate to keep coming back with this, but it is not finding any of the columns I setup in the combox.

CType(Me.cboItemName.DataSource, DataTable).Rows(Me.cboItemName.SelectedIndex).Item("ItemPrice")

Here is the DataTable which only shows 3 columns and the column I would like to see "ItemPrice" its value is in the DropDown column:

I already implemented the method of using another BO for lookup, but if this can work, then it will be easier to maintain and re-use in other forms.

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
They won't be the name of the columns in the combo box.  There will be 2 different columns (just put a break point in your code and look at the columns).  There will be a display and a value column (I think) but it gives you the contents of the combo.  The BO that was used to generate the contents of the BO is long gone by this point, so if you want to get back to that you will have to manually populate your own combo.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks!

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 18 Years Ago
Aaron Young - 18 Years Ago
Edhy Rijo - 18 Years Ago
Greg McGuffey - 18 Years Ago
Edhy Rijo - 18 Years Ago
                         If I recall correctly, that BO is created and destroyed during the...
Greg McGuffey - 18 Years Ago
                             [quote][b]Greg McGuffey (09/19/2008)[/b][hr]If I recall correctly,...
Edhy Rijo - 18 Years Ago
                                 You don't need access to the internal BO. The internal BO is dead and...
Trent L. Taylor - 18 Years Ago
                                     [quote][b]Trent L. Taylor (09/22/2008)[/b][hr]You don't need access to...
Edhy Rijo - 18 Years Ago
                                         Sorry I was going quickly and didn't totally flesh out the properties....
Trent L. Taylor - 18 Years Ago
                                             I hate to keep coming back with this, but it is not finding any of the...
Edhy Rijo - 18 Years Ago
                                                 They won't be the name of the columns in the combo box. There will be...
Trent L. Taylor - 18 Years Ago
                                                     Thanks!
Edhy Rijo - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search