I have two data sources that being updated on a regular basis, resulting in new columns. These are are merged via JSL scripting which works well but, I'd like to embed a graph with a column switcher that grows as more columns are added.
For example, say HPLC data comes from Instrument A and Instrument B. Each column is a separate sample, with more samples being added over time. I'd like to create a simple XY chart in the final data table for my 'A' samples, so that as more columns are added, the column switcher grows as well. (Similar with B and even C, if a third instrument is added later).

I've created a variable from the A table before I merge the data with B, but how can I pass the list (or evaluate it ) so that the final table recognizes the variable or has explicit column names?
A_columns = dt_A <<Get Column Names();<BR /><BR />//Merge A and B based on time column<BR /><BR />Final_Table =dt_B << Update(<BR />With(dt_A)),<BR />Match Columns( :Time = :Time)<BR />);<BR />Final_Table <<New Script("Graph",<BR />Graph Builder(<BR />Size( 546, 565 ),<BR />Show Control Panel( 0 ),<BR />Variables( X( :Time ), Y( A_columns[1] ) ),<BR />Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),<BR />Column Switcher( A_columns[1], A_columns)<BR />);
This seems to work well when I obtain a list of columns from the final table, but trying to use a variable created from another table is causing issues.