Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Object Design
Message
De
31/05/2006 15:33:14
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
31/05/2006 15:15:17
Tricia Atkinson
Michigan Health and Hospital Association
Lansing, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
Database:
MS SQL Server
Divers
Thread ID:
01126281
Message ID:
01126289
Vues:
24
Welcome, Tricia

I think your best bet is to use one business object with either separate methods for getting the different code types, or one method that creates 2 dataviews for the data, each with a filter applied to only show the code type you need. Either way, the key is to create dataviews in the same dataset.

Then, check out devguide section titled, "Synchronizing Data Bound User Interface Controls." Read through the part called, "Turning off Synchronization" for the syntax of how to set up dataviews in the property sheet for your comboboxes.

Hope that helps,
---J

>I am new to .Net and the Mere Mortals framework, so please forgive me if this is a silly question.
>
>I have a table that stores all of the miscellaneous codes that I use in my application. Each code is assigned a type which indicates what the code is used for (i.e. Status Codes, Priority codes, etc.). I need to display the proper codes in a dropdown list box -- but only the codes for a particular type. I want a Status Codes dropdown and a Priority Codes dropdown.
>
>Since Codes is one table, I originally created one business object, but I couldn't find a way to filter the values to the particular codes I wanted displayed. So I created two different business object -- one for Priority Codes and one for Status Codes and set the Binding source of each dropdown appropriately. Is this the best way to handle this situation ?
>
>Thanks
>Tricia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform