Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Link CustomerList BO to Customer in Parent Child Relatio
Message
De
09/03/2005 22:55:08
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00993854
Message ID:
00994302
Vues:
17
>What is not working:
>1. UltraComboBox is not showing the first record of the CustomerList (but does show all the records when the drop down is selected)

Have you set your CustomerList BindingValueSource, BindingValueSource and BindingValueSourceMember properties to the corresponding data in the Customer business object?

>2. When a new selection is made using the UltaComboBox no HookParentNavigated is raised - how should this be done?

The navigation events are normally fired by specifying a DataGrid as the form's Navigation control which raises the associated business object's Navigation events. When using a ComboBox you need to manually add code to the combo box's handler event (when a new item is selected) that calls the business object's NavigateData() method.


Regarding Problem 1 - Why would I set the BindingValueSource, BindingValueSource and BindingValueSourceMember properties to the corresponding data in the Customer business object when it is desired to bind this to my CustomerList business object?

Regarding Problem 2 - How do I call the business object's NavigateData() method to get to a specific record from the Combo.SelectedValue (I thought that I only could specify first, prev, next or last)?
The business object only has a Navigated and Navigating method.
The mmBusinessForm has a NavigateData method that (per the MM Dev Guide):

Sets the main form's nav toolbar buttons, then passes the business object's
current DataRowView to the primary business object's Navigate method.
Syntax:
public Void NavigateData(mmNavigate navPosition, Boolean raiseEvents)
Return: Void
Parameters: navPosition
Position to navigate to
raiseEvents
Specifies if business object navigation events are raised

navPosition only has mmNavigate.First, mmNavigate.Last, mmNavigate.Previous, mmNavigate.Next, mmNavigate.Refresh and mmNavigate.Update




THANKS for your wise assistance!!!
THANKS
Joe Salvatore, Programmer/Analyst - The Stellar Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform