Populate ComboBox when BO needs a datasource key


Author
Message
Jason Seidell
Jason Seidell
StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)StrataFrame User (153 reputation)
Group: Forum Members
Posts: 59, Visits: 180
I'm trying to figure out how to populate a combo box but I need to be able to set a DatasourceKey in the autopopulate settings and cannot.  When I try to manually populate the control I get data but as soon as you select an item the entire form locks and you cannot set focus to any other controls.  I'm completely lost as to why the combobox locks the form.

I'm frustrated that I cannot set the DatasourceKey for the population business object, and that I cannot find any examples for manually populating a business object.  All the documentation says to 'search for combobox population', and a vague reference to needing a datatable but no specifics for required fields.  Which seems odd since you populate a combobox with objects not datatables, or is there some interface the combobox items needs to support?

Jason

Jason Seidell

Programmer/Analyst

Infinedi

Reply
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Check that the BO you selected to fill the combo has the correct data source key set. You do this by looking at the designer of that BO and check the DataSourceKey property. Likely you forgot to set it, and the default is "".



You don't ever need to set this when filling the combo. This is a BO setting, essentially enabling the BO to access data whenever needed.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search