Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 1 Monat
Letzter Beitrag:
vor 3 Jahren, 1 Monat
Beteiligte Autoren:
Fabrice Harari, StefanoG

How to pass / return list of elemens between forms or components?

Startbeitrag von StefanoG am 17.05.2015 14:26

Let's imagine we have a window/form A that we want to fill with information coming from a specific list of X customers, not all the customers we have in our DB.
We already developed a window B for customers management where you can browse all the customers, even with filters and master/detail feaures.
How can we call the window B from the window A in order to select (by a check column for example) a number of customer ad send them back to window A to fill its table?

The real scenario is that the user launch start menu exe (project 0) where he selects the module A (coming as component from project 1) and then open module B (coming as component from project 2) to build the list of customers.
3 project -> 2 components+1exe

Viceversa, how can I fill the browsing window B with a subset of customers passed as parameter from a window C?

I thought about:
1) build multimode windows acceptiong / returning parameters depending on the opening mode
2) pass/return "customer-class" objects or array of instances of a "customer-structure"
3) work with EXTERN structure variables
4) use shared memory zones

Thank you.


Hi Stefano,

if your windows A, B and C share the same HF context, then you can simply use the same query in all windows (lets call it QRY_customerselect)... You setup all the possible parameters you may need in the editor, fill the one needed based on the user action, set the others to null and run it, then you call the other window who know that QRY_customerselect is there and ready and just has to hreadfirst/next on it.

Best regards

von Fabrice Harari - am 18.05.2015 08:37
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.