Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using subsets of same table for different drop down list
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01140484
Message ID:
01143106
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform