Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBoxes - HELP!!
Message
De
22/10/2003 09:46:47
 
 
À
21/10/2003 19:10:39
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00840890
Message ID:
00841006
Vues:
21
>Greetings!
>
>You can tell I've been away from the VFP user interface for way too long!!! Here's my scenario:
>
>I have a form with a clistobj object on it. Pressing the Edit button causes an clisteditobj form to come up poplulated with the information relating to the selected clistobj record. I have two combo boxes on the edit form. Both have 2 columns, column 1 is the description and column 2 is the unique id (and is not shown in the display).
>
>I also have a bizobj for each combobox on the edit form. Both are views and the one used by combobox 2 requires a parameter.
>
>There is a dependency, whereas when combobox 1 is selected, a view parameter is created and I requery the bizobj for combobox 2. This is not working at all. The original value of the parameter remains no matter what I do (this value comes from the calling form's bizobj, another view).
>
>I've tried to follow the examples that Kevin provided in the ProjMgr project. However, I can't even get the comboboxes to populate with the "currently selected" option when the Edit form first comes up???
>
>Anyway, it's getting fairly frustrating, and I just thought someone might have some words of encouragement for me. I am not a good interface programmer to begin with, so comboboxes tend to drive me crazy without the added fun of using the framework on top of that!
>
>Thanks for any help, suggestions or other methods that work for getting this stuff through my thick skull.

What is in combobox2.requery()? Where are you calling combobox2.requery()?

When I'm trying this, I put something like this in combobox1.click()
This.Parent.Bizobj2.MyRequery(This.Value)
This.Parent.Combobox2.Requery()
This.Parent.Combobox2.Refresh()
Where MyRequery takes the parameter, stores it to a bizobj property defined as the parameter to the view, and does a This.Requery().

Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform