Dynamic Value Sets using pre-load file
Posted: June 1st, 2018, 5:34 am
Hi CSPro users,
I would want to implement a dynamic value set using a pre-load file. There are four levels that I would want to narrow down by filtering out the elements that aren't a subset of the previously selected value, in other words cascading select. Attached is an example of the pre-load file
I know there needs to be some tweak in the code below
Thanks for the help.
I would want to implement a dynamic value set using a pre-load file. There are four levels that I would want to narrow down by filtering out the elements that aren't a subset of the previously selected value, in other words cascading select. Attached is an example of the pre-load file
I know there needs to be some tweak in the code below
Code: Select all
onfocus
if loadcase(location_DICT, SC_CODE) = 1 then
numeric i;
do i = 1 while i <= count(location_DICT.LOCATION_REC)
labels(i) = VL_SL_NAME(i);
codes(i) = VL_SL_CODE(i);
enddo;
codes(i) = notappl;
setvalueset(SL_CODE, codes, labels);
endif;