- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Is there a function that returns a list of messages an object responds to?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Is there a function that returns a list of messages an object responds to?
Other languages do implement this, btw. Ruby has it.
Thanks for your reply; I’ll accept it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
I end up in JSL Syntax Reference page
And it has few extra links which might be helpful to see additional examples.