Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using subsets of same table for different drop down list
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01140484
Message ID:
01143106
Views:
10
This message has been marked as the solution to the initial question of the thread.
Linda,

>I stepped through the binding code. This may be the problem. mmBusinessWebPage.cs has a method called GetBizObj, which calls RefBizObj, passing the name of the 2nd table ("Approvers") as the parameter. It calls
>an mmCollections.cs method Get(string ObjClass). If the ObjectType ("Users", which is the primary table) does not equal the ObjClass ("Approvers", which is the 2nd table), it returns a null.

The GetBizObj() method accepts the name of the business object class as a parameter, not the table name. Have you set the BindingSource of the control to the name of the table? If so, this is incorrect. If you are binding to a secondary table in a business object, you should bind the controls like this:
BindingSource - <BusinessObjectClassName>
BindingSourceDisplayMember - <TableName.ColumnName>
BindingSourceValueMember - <TableName.ColumnName>
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform