Hi everyone,
I’m working in JSL and have created several Graph Builder visualizations on Table A.
Later in the script, I update or join Table A with Table B (using Time as the key and ID as a filter) — this creates a new table (let’s call it Merged Table).
The issue is:
-
The visuals and Graph Builder setups I made on Table A don’t automatically appear in the Merged Table.
-
I want to copy or reapply those same visualizations to the new table that results from the join/update.
Pondering -
-
Is there a JSL-based way to transfer or rebind Graph Builder scripts from one table to another?
-
What’s the most reliable workflow for this if certain KPIs are calculated only on filtered rows based on time windows?
I also tried the code below but I don't see mt calcTable showing that on the GUI window onTop Left panel.
scriptNames = dt_merged << Get Table Script Names;
Show(scriptNames);
// Loop through and copy each script to calcTable
For(i = 1, i <= N Items(scriptNames), i++,
scriptName = scriptNames[i];
scriptCode = dt_merged << Get Table Script(scriptName);
// Add the same script to calcTable
calcTable << Set Table Script(scriptName, scriptCode);
Show("Copied script:", scriptName);
);