cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
shampton82
Level VII

Number of elements in the tree structure

Okay, this is probably another easy one but stumped once again.  How do I determine how many boxes are in an analysis' tree?  I want to loop through the boxes to get values but don't see something I can return and then use with n items() or <=Variable in the for loop.  Also, is there a way to find the number of a specific type of box (such as col list box only)

 

Thanks for any suggestions.

Steve

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Number of elements in the tree structure

You can use Xpath() for those kind of questions.  Xpath is a language that interrogates xml, which is actually the base of the Tree Structure in JSL.

Xpath is an independent language.  You can search the internet for training for it, if you want to really use it.

Here is a simple example of finding the number of TextBoxes in a Display Tree.

Names Default To Here( 1 );
//This message applies to all display box objects
win = New Window( "test", Text Box( "my test" ) , text box("aaa"));
count=nitems(win << xpath( "//TextBox" ));

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Number of elements in the tree structure

You can use Xpath() for those kind of questions.  Xpath is a language that interrogates xml, which is actually the base of the Tree Structure in JSL.

Xpath is an independent language.  You can search the internet for training for it, if you want to really use it.

Here is a simple example of finding the number of TextBoxes in a Display Tree.

Names Default To Here( 1 );
//This message applies to all display box objects
win = New Window( "test", Text Box( "my test" ) , text box("aaa"));
count=nitems(win << xpath( "//TextBox" ));

 

Jim

Recommended Articles