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

Outline close orientation for column switcher issue

I have a graph builder chart where I have multiple column switchers

shampton82_0-1714959418533.png

 

I've set their orientation to horizontal by right clicking on the maximize/minimize arrow and selecting this for each one:

shampton82_1-1714959453989.png

 

However, the script for this customization is not retained when I save the chart script for later use.  I see that there is this option in the scripting index:

shampton82_2-1714959586246.png

but not sure how to apply it to just the column switchers (don't want it applied to the local data filter).  Thanks for any suggestions!

 

Steve

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Outline close orientation for column switcher issue

I think this does require some scripting. You can go the "maybe works" way of using JMP's property viewer to get a reference and then set your close orientation

jthi_0-1714975523842.png

or use XPath (which I would most likely always use) to get the references to ColumnSwitcherContextOutlineBox (? OutlineBox would be much nicer) and then send messages to those as needed.

 

Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
	Column Switcher(:sex, {:name, :sex}),
	Column Switcher(:weight, {:age, :weight})
);

obs = (gb << top parent) << XPath("//ColumnSwitcherContextOutlineBox");
obs << Close(1);

wait(1);
obs << Outline Close Orientation("Horizontal");
// obs << Outline Close Orientation("Vertical");

 

In some cases you might need to modify the XPath query to work but in this simple case using JMP17.2 this did work.

 

Might be worth sending message to support so that would also be recorded as part of column switcher like Jim did mention. @julian 

-Jarmo

View solution in original post

14 REPLIES 14
txnelson
Super User

Re: Outline close orientation for column switcher issue

Here is a simple example

txnelson_0-1714963206922.png

names default to here(1);

// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :PNP1 ), Y( :NPN1 ) ),
	Elements( Points( X, Y, Legend( 5 ) ), Smoother( X, Y, Legend( 6 ) ) ),
	Local Data Filter(
		Add Filter( columns( :SITE ), Display( :SITE, N Items( 5 ) ) )
	),
	Column Switcher(
		:NPN1,
		{:NPN1, :NPN2, :PNP3},
		Title( "Switcher A" ),
		Close Outline( 1 )
	),
	Column Switcher(
		:PNP1,
		{:PNP1, :PNP3, :IVP1, :PNP4},
		Title( "Switcher B" ),
		Close Outline( 1 )
	)
);

 

Jim
shampton82
Level VII

Re: Outline close orientation for column switcher issue

Hey Jim,

Thanks for the quick response!  I tired out your supplied script and it doesn't appear to get me where I wanted to go so let me show you how I modified the chart your script produced.  I'd like to have the chart open like this vs the default vertical orientation:

shampton82_0-1714965592304.png

Which I changed by the method shown in my first post on right clicking this guy

shampton82_1-1714965664565.png

and changing the close orientation.  However, this is not recorded in the script so if I hit redo or save the script out and rerun it later I will get the vertical alignment again and have to manually change it.

 

Hope this makes the ask clearer!

 

Steve

 

txnelson
Super User

Re: Outline close orientation for column switcher issue

I am not aware of a solution.  This does seem to be a bug that needs to be given to the JMP Support folks.  

Maybe another Community member will have ananswer.

Jim
hogi
Level XI

Re: Outline close orientation for column switcher issue

I miss this feature in Dashboard Builder.
After adjusting the Layout, the next time the Dashboard will again open with standard settings.

I added this topic to the collection:
https://community.jmp.com/t5/Discussions/Actions-missed-by-Advanced-Log-Workflow-Builder/m-p/752207/... 

jthi
Super User

Re: Outline close orientation for column switcher issue

I think this does require some scripting. You can go the "maybe works" way of using JMP's property viewer to get a reference and then set your close orientation

jthi_0-1714975523842.png

or use XPath (which I would most likely always use) to get the references to ColumnSwitcherContextOutlineBox (? OutlineBox would be much nicer) and then send messages to those as needed.

 

Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
	Column Switcher(:sex, {:name, :sex}),
	Column Switcher(:weight, {:age, :weight})
);

obs = (gb << top parent) << XPath("//ColumnSwitcherContextOutlineBox");
obs << Close(1);

wait(1);
obs << Outline Close Orientation("Horizontal");
// obs << Outline Close Orientation("Vertical");

 

In some cases you might need to modify the XPath query to work but in this simple case using JMP17.2 this did work.

 

Might be worth sending message to support so that would also be recorded as part of column switcher like Jim did mention. @julian 

-Jarmo
hogi
Level XI

Re: Outline close orientation for column switcher issue

If they work on this topic ... other custom Report settings are also missed by Enhanced log / Workflow Builder / Dashboard Builder, like this one:

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Size( 576, 529 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Column Switcher( :sex, {:age, :sex} )
);

current Report()[ColumnSwitcherContextListBox(1)] << set horizontal(0);

MissingHorizontalSetting =(Current Report()[Outline Box( 1 )] << Get Scriptable Object()) << get script()

 

Re: Outline close orientation for column switcher issue

just a general comment on the discussion here, if something does seem to be a bug to you or is not within the product but would be nice to have included, please:

  • send an email in addition to the community post to support@jmp.com (including the link to the community post)
  • add a JMP Wish List  entry with the reason why this will be important to be added
    (or check there if your wish is already there and kudo) 

Thanks!

/****NeverStopLearning****/
hogi
Level XI

Re: Outline close orientation for column switcher issue

Ok, good idea.

 

here is the wish: grab more report settings via Enhanced Log / Workflow Builder (TS-00142187)

Jasean
Staff

Re: Outline close orientation for column switcher issue

To clarify @martindemel's comment, if you believe it is a bug, please contact support@jmp.com.  If what you want is not within the product but would be nice to have included, add or kudo a JMP Wish List entry.  Please do not do both.  All requests should be routed through the Wish List.  All bugs should be routed through JMP support.

 

Thanks!