Choose Language Hide Translation Bar
Highlighted

How to obtain the Platform Script from a report window?

Hi,

I'm trying to read in the platform script from an open graph/analysis window. Using "window_ref = Window( i );" I can obtain a reference to that window, but I'm not sure how to obtain the platform object from this report window referece in order to get the platform script rather than the report window script.  Can anyone help with this?

Thanks,

Deepak G

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Jeff_Perkinson
Community Manager Community Manager

How to obtain the Platform Script from a report window?

Use the Get Scriptable Object message on an outline box.

open("$SAMPLE_DATA\Big Class.jmp");
Bivariate( Y( :weight ), X( :height ), Fit Line );
biv=Current Report()[outlinebox(1)]<<Get Scriptable Object; 
biv<<fit mean;
-Jeff

View solution in original post

3 REPLIES 3
Highlighted
Jeff_Perkinson
Community Manager Community Manager

How to obtain the Platform Script from a report window?

Use the Get Scriptable Object message on an outline box.

open("$SAMPLE_DATA\Big Class.jmp");
Bivariate( Y( :weight ), X( :height ), Fit Line );
biv=Current Report()[outlinebox(1)]<<Get Scriptable Object; 
biv<<fit mean;
-Jeff

View solution in original post

Highlighted

How to obtain the Platform Script from a report window?

Thanks Jeff

Highlighted
Vball247
Level IV

Re: How to obtain the Platform Script from a report window?

Thanks for this answer. I was trying to use Send To Report(Dispatch...) to update a manually generated platform. So it appears the Send To Report is a message to the platform, to then send to the report of the platform the Dispatch contents. I was looking for a "Current Platform" option similar to the "Current Report". So it seems that

 

myplatform = Current Platform() (that does not exist) can be done by:

 

myplatform = Current Report()[outlinebox(1)]<<Get Scriptable Object;

 

Now something like this works:

myplat = Current Report()[Outlinebox(1)] << Get Scriptable Object;


myplat << SendToReport( 
	Dispatch(
		{},
		"1",
		ScaleBox,
		{Add Ref Line( 60, "Solid", "Medium Dark Red", "Point of interest", 1 )}
	)
);

 

Any chance in new versions of JMP of getting a "Current Platform" function that would be equivalent to this method using Get Scriptable Object?

Article Labels

    There are no labels assigned to this post.