StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ComboBoxExpand / Collapse
Author
Message
Posted 09/01/2006 5:55:10 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 11/07/2008 5:12:40 AM
Posts: 150, Visits: 529
I have a winform with a "boPersons" Business object and table = persons. and a column= IDPerTitles. I populated the form with a combobox and configured it as follows

1. PopulationDataSource = "BoPositionTitles", FillTop100().

2. Diaplay Member = {0}-RecordID,{1}-Description

3 Display Member Formate String = {0},{1}

ValueMember = RocordID which is the recordID of the BoPositionsTitles Business Object.

When I dropdown the combobox I can see the list of position titles. I can also select a title. However, when I return to the form, the combobox displays the first record in the BoPositionTitles object. It appears that the boPersons BO is not being populated with the recordId from the BoPositionTitles object upon saving??

Michael

Post #2628
Posted 09/03/2006 8:38:22 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 11/02/2006 10:04:26 AM
Posts: 18, Visits: 22
I've got about the same problem: If I dropdown I can see the correct data, however if I return to the form, there is no data selected.

...gerhard...

Post #2631
Posted 09/03/2006 10:55:01 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 11/07/2008 5:12:40 AM
Posts: 150, Visits: 529
Ok, I got I forgot the bindingfield. Here is a snippet from a previous thread.

1. Select the country combo box
2. Click the PopulationDataSourceSettings
3. Choose the Country Business Object
4. Choose the method that will Fill the BO with the countries
5. Add the country name as the display column
6. Add {0} to the format column
7. Pick the primary key of the Country table for the Value Member
8. Click OK
9. Make sure that the PopulationType of the combo is set to BusinessObject
10. On the same combo box, select the BusinessObject property to the instance of the Clubes on the form
11. Set the BindingField to the Country field in the Clubes table.

Post #2633
Posted 09/05/2006 1:28:18 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
Yes, the PopulationDataSourceSettings are only for the population of the business object and have nothing to do with the binding back to the data.  So, you also need to configure the business object and field to which the combo box's selected value is bound.


www.bungie.net
Post #2637
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:48am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 14 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.