cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Hegedus1
Level III

Loading an external script to a data table

Hi,

 

Workflow involves taking a csv file importing and doing a bunch of calculations and then creating a summary table of important metrics.  I also have a script that creates a user interface with column switcher and local data filters (shout out to txnelson).  I would like to keep the code for table creation and manipulation separate from the creating the user interface.  What I would like to do is call the interface script from the main loading one and also add that interface script to summary data table.  The intent is that the user could accidentally close the interface window and I do not want to have to rerun the entire import script just to get interface again.

 

What is the preferred way of doing this? 

 

Andy

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Loading an external script to a data table

names default to here(1);

// The JSL that extracts the csv table and does the calculations

// The dt below is a reference to the data table you want the User
// Interface code add to
dt << New Script( "User Interface",
	// Your User Interface Code
);
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Loading an external script to a data table

names default to here(1);

// The JSL that extracts the csv table and does the calculations

// The dt below is a reference to the data table you want the User
// Interface code add to
dt << New Script( "User Interface",
	// Your User Interface Code
);
Jim