cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
mtowle419
Level II

Is there a function that returns a list of messages an object responds to?

Ex.:

 

nt = new table();

nt << messages;

=> { get column names, etc }
3 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: Is there a function that returns a list of messages an object responds to?

The Scripting Index can show you all of the messages that can be sent to an object, such as a Data Table

txnelson_0-1723859619508.png

 

Jim

View solution in original post

MathStatChem
Level VI

Re: Is there a function that returns a list of messages an object responds to?

You can also use

nt=new table();
show properties(nt);

This will show (most?) of the messages the object will accept, but doesn't show the full syntax required for each message.  

View solution in original post

jthi
Super User

Re: Is there a function that returns a list of messages an object responds to?

I use all of Show Property(obj), Scripting Index, Scripting Guide and JSL Syntax reference (Scripting Index is definitely the most important one for me). For JSL Syntax reference I tend to utilize the .pdf as I consider JMP Help pages search to be so horrible that it cannot be used https://www.jmp.com/en_fi/support/jmp-documentation.html (you can also get Scripting Guide and other documentation as .pdf). Or first I use Scripting Index and then click topic help as this helps (hopefully) to navigate to correct page on JMP Help.

 

Be careful though, different documentation do not necessarily agree... JMP Scripting Index feedback and discussion this is a bit old topic now and some of my understanding has improved since regarding the syntax but if I remember correctly it does contain some examples of discrepancies between different documents.

-Jarmo

View solution in original post

7 REPLIES 7
txnelson
Super User

Re: Is there a function that returns a list of messages an object responds to?

The Scripting Index can show you all of the messages that can be sent to an object, such as a Data Table

txnelson_0-1723859619508.png

 

Jim
mtowle419
Level II

Re: Is there a function that returns a list of messages an object responds to?

The thing with the Scripting Index is, I feel like I’ve noticed missing messages as well as deprecated ones.

Other languages do implement this, btw. Ruby has it.

Thanks for your reply; I’ll accept it as a solution.
txnelson
Super User

Re: Is there a function that returns a list of messages an object responds to?

You should add your idea to the JMP Wish List

Jim
MathStatChem
Level VI

Re: Is there a function that returns a list of messages an object responds to?

You can also use

nt=new table();
show properties(nt);

This will show (most?) of the messages the object will accept, but doesn't show the full syntax required for each message.  

jthi
Super User

Re: Is there a function that returns a list of messages an object responds to?

I use all of Show Property(obj), Scripting Index, Scripting Guide and JSL Syntax reference (Scripting Index is definitely the most important one for me). For JSL Syntax reference I tend to utilize the .pdf as I consider JMP Help pages search to be so horrible that it cannot be used https://www.jmp.com/en_fi/support/jmp-documentation.html (you can also get Scripting Guide and other documentation as .pdf). Or first I use Scripting Index and then click topic help as this helps (hopefully) to navigate to correct page on JMP Help.

 

Be careful though, different documentation do not necessarily agree... JMP Scripting Index feedback and discussion this is a bit old topic now and some of my understanding has improved since regarding the syntax but if I remember correctly it does contain some examples of discrepancies between different documents.

-Jarmo
mtowle419
Level II

Re: Is there a function that returns a list of messages an object responds to?

What's your go-to when you want to know the different options/named parameters a function takes?

jthi
Super User

Re: Is there a function that returns a list of messages an object responds to?

If you just want to know about the parameters for a function it is either Scripting Index or JSL Syntax Reference. And I start with Scripting Index. If it doesn't have enough information I will try Topic Help button from there. It will then (hopefully) take me to JSL Syntax Reference or Scripting Guide.

 

For example Contains(), starting from Scripting Index

jthi_0-1723904116796.png

I end up in JSL Syntax Reference page

jthi_2-1723904171039.png

And it has few extra links which might be helpful to see additional examples.

-Jarmo