I am unable to get my script to work. It is intended to publish 2 control charts to JMP Live to demonstrate CC Warnings. Curious if someone can provide guidance?
Thanks!
Hi Wendy,
scripted publishing in JMP 16 has changed quite a bit. First you need to create a JMP Live connection using desktop JMP. Go to File -> Publish -> Manage Connections... and add a new connection. There you have to specify the URL and API Key. Then in your JSL you will use that connection to publish to JMP Live. Use the name you gave the connection in your JSL code. So something like this:
Names Default To Here( 1 ); title = "Washers P-Chart Test Report"; jmplive = New JMP Live( Connection( "devlive16" ), Prompt( If Needed ) ); dt = Open( "C:/Users/wetsen/OneDrive - SAS/Demos/JMP Live/Control Chart Warnings/Washers.jmp" ); p_cc = dt << Run Script( "P chart of num defective with warnings" ); np_cc = dt << Run Script( "NP chart of num defective with warnings" ); webrpt = New Web Report(); webrpt << Add Reports( {p_cc, np_cc} ); jmpliveresult = jmplive << Publish( webrpt ); report = jmpliveresult << As Scriptable;
Thanks, @dieterpisot !
It does publish now but it is not publishing to the group that I am specifying. Do you know if there is an issue with my syntax?
Names Default To Here( 1 ); title = "Washers P-Chart Test Report"; jmplive = New JMP Live( Connection( "devlive16" ), Prompt( If Needed ) ); dt = Open( "C:/Users/wetsen/OneDrive - SAS/Demos/JMP Live/Control Chart Warnings/Washers.jmp" ); p_cc = dt << Run Script( "P chart of num defective with warnings" ); np_cc = dt << Run Script( "NP chart of num defective with warnings" ); webrpt = New Web Report(); webrpt << Add Reports( {p_cc,np_cc} ); jmpliveresult = jmplive << Publish( webrpt, Groups( {"Process Monitoring"} ) | Public( 1 ), Title( "Washers Process Monitoring" ) ); report = jmpliveresult << As Scriptable;
You can't "or" in the Public(1) with the Group. You either publish to Groups, or you make it completely public. HTH.
Brian
This publishes to the server but not to the group.
Names Default To Here( 1 ); title = "Washers P-Chart Test Report"; jmplive = New JMP Live( Connection( "devlive16" ), Prompt( If Needed ) ); dt = Open( "C:/Users/wetsen/OneDrive - SAS/Demos/JMP Live/Control Chart Warnings/Washers.jmp" ); p_cc = dt << Run Script( "P chart of num defective with warnings" ); np_cc = dt << Run Script( "NP chart of num defective with warnings" ); webrpt = New Web Report(); webrpt << Add Reports( {p_cc,np_cc} ); jmpliveresult = jmplive << Publish( webrpt, Groups( {"Washers Process Monitoring"} | Public(0), Title( "Washers Process Monitoring" ) ); report = jmpliveresult << As Scriptable;
Here is another example of publishing to a group (note no inclusion of Public):
webreport = New Web Report(); webreport << Add Report(biv, Title("Bivariate by BC"), Description("A test of the new scripting")); webreport << Add Report(oneway, Title("Oneway by BC"), Description("A test of the new scripting")); liveresult = lc << Publish(webreport, Groups({"BCGroupA[bc]"}));
I wanted to add to this post regarding JMP Clinical 8 as well. The JMP Clinical specific UI has a group specification option, but you have to type in the list of groups. The group name is not enough (it fails to publish to JMP Live 16). You have to specify the group name and the user name like this for JMP Live 16. This is also seems to be true for using JSL to specify groups in JMP 15 and 16.
"BCGroupA[bc]"
or
"TestGroup3[Chris Kirchberg]"
or for multiple groups
"TestGroup3[Chris Kirchberg]","Test Group 1[Chris Kirchberg]"
Hi Chris,
this is only for personal groups. For them the name of the owner is part of the group name.
The owner's name is not part of open, closed, or hidden groups
Thanks Dieter.
I see that I do not have options to create Open, Closed, or Hidden groups ,which makes sense since I am not and admin and only admins can create these groups. Can members of these types of groups post to these groups if admins create them?