I am attempting to learn/use xPath in retrieving elements from the JMP Display Output. For my learning, I have a very simple Bivariate output, and I am attempting to retrieve the Prediction formula, directly from the display output.
The JSL
names default to here(1);
dt = Open("$Sample_Data/big class.jmp");
ow = Bivariate(
Y( :weight ),
X( :height ),
Fit Line( {Line Color( "Medium Dark Green" )} )
);
The Issue:
I can easily retrieve the formula using the Display Tree call of
zap = report(ow)["Linear Fit"][TextBox(1)] << get text;
I can also access it by retrieving the text from the 4th TextBox from an xPath retrieval
zip = (report(ow) << XPath("//TextEditBox"))[4] << get text ;
But since the value of 4 for the subscript, may change if additional fits are added etc. I would like to use xPath to retrieve the 1st textbox after an outlinebox that has the value of "Linear Fit"
Do any of you xPath experts have a solution.
Jim