Hello Everybody,
I have this simple selection list where I choose some process. Next to that I have check box where
I can select some other parameters. After confirming the selection with OK button, the chosen parameters are saved as combined string variable with comma delimiter. Is it possible, after selecting the previous process (for example in order to choose additional parameters from check box), to read previously saved parameters and display the selections again in the check box (in order to see immediately what has been previously chosen)? Additionally, the renewed saving of updated/changed selection should be also possible.
I would appreciate for hints and suggestions how to solve mentioned issue.
Thank you and best regards.
dt = New Table( "example",
Add Rows( 3 ),
New Column( "Process",
Character( 16 ),
"Nominal",
Set Values( {"Process_1", "Process_2", "Process_3"} )
),
New Column( "Selected",
Character( 16 ),
"Nominal",
Set Values( {} )
)
);
New Window("Example",
H List Box(
processes = {"Process_1", "Process_2", "Process_3"};
//then display
Panel Box("Process",
process = List Box( processes, max selected( 1 ) ),
Button Box( "OK",
process_selected = process << get selected ),
//Write(process_selected[1])
),
Spacer Box(Size(20, 10)),
Panel Box("Parameters",
params = Check Box({"parameter_1",
"parameter_2",
"parameter_3",
"parameter_4"
})
),
),
Button Box("SAVE",
choice_parameters = params << Get Selected();
),
);
//combine
combined = Concat Items(choice_parameters, ",");
//find row in "Process" column having selected process
r = dt << Get Rows Where( :Process == process_selected[1] );
dt:Selected[r] = combined; // Update value