Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using 2 combobox in grid filtered
Message
De
02/06/2020 05:32:25
 
 
À
01/06/2020 19:04:22
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01673609
Message ID:
01674666
Vues:
76
>Ok, Luís, back to your initial question(s):
>
>> [Part 1] I need to create 2 comboboxes in a grid with bindevents (I need to use Bindevents, because i dont have access to code source) , and [Part 2]when I select an item in combo 1, the second combobox returns the filtered records.
>> both combobox's recordsourcetype is SQL and will return a cursor.
>
>Starting with Part 1
>
>You said later on the thread that you can edit the form. Can you add controls freely, or the only thing you can do is to work on the code of existing controls (like the grid)?
>
>Hello António,
>
>Yes , i can add controls (textbox, editbox, grids, ..). i can also with this code add new fields on the original grid. Ex:
> [...]
>
>My intention is to create a Bindevent in a grid (not the original one) and write an Xbase expression to execute, in this case create 2 combobox, as the grid is always refreshed, when starting with the Form the 2 combobox will be created dynamically.
>The next trick will be to control when selecting an option on the first to be able to filter the content on the second.
>
>I hope I managed to answer your question in the best way.
>
>Best regards,
>Luis

Luís,

I'm not confident that I understood your requirements, but perhaps trying to move on will help with that.

BINDEVENT() links a method in an object to (the same or other) object events and methods or (the same or other) object property-related events.

So, what's the handled object? What is its event/method/property that you want to handle? And what is the object that will handle the event?
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform