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

Make scripts inside a data table editable via JSL

I have been running into this issue recently : I wanted to have a jsl script edit another script that is embedded inside a data table.

 

Currently, the best I can do is get the script with the message:

dt<< get script () ;

I get the content of the script as a string which I can edit, then I can save it using :

 

dt<< save script ();

The problem is it can only make a copy and not save to an existing scrîpt. If I use the same name, it will simply add a '2' at the end of the name.

 

I guess I could save it as number 2, erase the first one, then rename the number 2 to have the original name but this seems a bit tedious and dangerous to do...

 

 So, what I propose, is a dt<<Edit script (); message.

While we're at it, why not make data table scripts into scriptable objects ? With a way to refer to them, like dt:myscript. Like this they could receive a bunch of messages like all the other objects within JMP.

 

 

 

 

 

 

 

 

2 Comments
Ryan_Gilmore
Community Manager
Status changed to: Archived
We are archiving this request. If this is still important please comment with additional details and we will reopen. Thank you!
hogi
Level XII

Much better than scripting a script as a string - edit it as an expression.

 

e.g. to get a functionality like dt << Delete Table Variables()