UltraCombobox binding


Author
Message
Yourik Hacoupian
Yourik Hacoupian
StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)StrataFrame Beginner (1 reputation)
Group: Forum Members
Posts: 1, Visits: 5
Hi guys,



I'm new to using Strataframe, so my question may be very simple but I have spent quite a time on this issue. Ok, heres the problem, I have three tables in my database with the following structure:



G_Ledger:

glNum (string)

title (string)



S_Ledger:

slNum:string

glNum: string

title:string



C_Ledger:

clNum: string

slNum:string

glNum: string

title:string



Now I have already created the BOs and set the parent-child relationship among the objects. Now I drop three UltraComboboxes on a form and I would like to populate the first combobox with G_Ledger BO and once an entry is selected from that drop down I would like to populate the corresponding entries for the next combobox and so on. First of all, it seems that I can't use the ultracombobox control since it's not a Stratafrrame wrapper control (I'm not sure is I'm right though). So I tried the wrapper combobox and when I populate the BO with the top100 entries from the db only the first entry shows up on the list (I tried setting the value members through the populatedatasource in properties).



Could someone please help me out here and let me know what I'm doing wrong.



Thanks,

Yourik
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
You can use the basic (non-wrapper) controls if you wrap each business object with a BusinessBindingSource.  To do that, you drop a BBS on the form (from the toolbox) for each business object and set the BusinessObject property on the BBS to the corresponding business object it is wrapping.  Then, those BBSs will show up as possible data sources for the DataSource property of the combo boxes (just like a data set that you dropped on the form).  Then, all you have to do is set the DisplayMember and the ValueMember properties and the grid will populate from the business object. 

As for the PopulationDataSourceSettings only pulling in one record, you can put a break point in the FillTop100 method (or whatever you called it) and make sure that after the FillDataTable() is called, that there are actually 100 records in the business object.

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