SmartSelect (combination of 2 smartselcts)

Ingo Bouveron

New Member
Hello,

I have to link 2 SmartSelects.
The second SmartSelect should depend on the first.

I know how to implement this scenario with 2 browsers,
(Let's say "orders of customer" or something like that).

But I don't know which functions or procedures
I should use for the SmartSelect.



Any help would be useful.

Thank you
Ingo
 

Ingo Bouveron

New Member
Hello,


I found a solution by myself.

That is what we got:

- 1. SDO with a link to 1. SmartSelect (h_SDO-1,"DATA",h_Dyn-Sel-1)
- 2. SDO with a link to 2. SmartSelect (h_SDO-2,"DATA",h_Dyn-Sel-2)
- A link from the 1. SDO to the 2. SDO (h_SDO-1,"DATA",h_SDO-2)
- A Viewer where all Objects are located
- In the field "Change on Event" of the 1. SmartSelect : sdo-1-changed
- In the section editor create a new override procedure createObjects

Code:
[/size][/font]
[font=Times New Roman][size=3]   Run Super.[/size][/font]
[font=Times New Roman][size=3]   Subscribe "sdo-1-changed" in h_Dyn-Sel-1. [/size][/font]
[font=Times New Roman][size=3]   END PROCEDURE.


- Create a new procedure sdo-1-changed

Code:
[/size][/font]
[font=Times New Roman][size=3]Def Input Param cNewValue As Char No-undo.  [/size][/font]
[font=Times New Roman][size=3]DYNAMIC-FUNCTION ('findRowWhere':U IN h_SDO-1,[/size][/font]
[font=Times New Roman][size=3]			input "MySearchVariable", [/size][/font]
[font=Times New Roman][size=3]			input cNewValue, [/size][/font]
[font=Times New Roman][size=3]			input "MySearchOperation EQ, LE .... ").[/size][/font]
[font=Times New Roman][size=3]END PROCEDURE.












Ingo Bouveron said:
Hello,

I have to link 2 SmartSelects.
The second SmartSelect should depend on the first.

I know how to implement this scenario with 2 browsers,
(Let's say "orders of customer" or something like that).

But I don't know which functions or procedures
I should use for the SmartSelect.



Any help would be useful.

Thank you
Ingo
 
Top