Hi,
Is it possible to use the try function in a column switcher script? I´m creating a script where I add a column switcher fore a few chosen columns to a graph which works fine. However, sometimes a column will be missing which will make the script stop. Therefore, I´m trying to use the try function for each of the relevant columns (as I don´t want all columns in the column switcher) but I can´t make it work.
dt << Column Switcher(
Try( (:RER), Throw( "RER does not exist" ) ),
Try( (:VO2), Throw( "VO2 does not exist" ) ),
Try( :Name( "Drink-[ml]" ), Throw( "Drink-[ml] does not exist" ) )
);
Is it possible or is there a better way to do this?
Br Julie