@john_madden,
If you only want the reset selection button pressed at some point here is script.
This script
- looks for a table data filter.
- If found, it looks for a visible button with the title "Reset selection".
- If the button is found, click it.
Names Default to Here(1);
dt = current data table();
dtname = dt << get name;
winList = get window List();
found = 0; _xzz=empty();
For(i=nitems(winList), i>=1 & !found, i--,
nme = winList[i] << Get Window Title;
If(Starts With(nme,"Data Filter") & Contains(nme,dtname),
found =1;
_xzz = winList[i] <<xpath("//IfBox[@isTrue='true']//ButtonBox[@title='Reset selection']")
if(nitems(_xzz) > 0, _xzz[1] << Click);
);
);
If you want this action to be taken more than at the start of your script, you will need a handler or subscription to define when it needs to be run.
Hope that helps.
XPath syntax can look a bit strange, but it is very powerful since the JMP report tree structure has an associated XML description. I've attached a script written for chapter 6, section "Scriptable Object and XPath" of JSL Companion, Applications of the JMP Scripting Language, Second Edition . The script provides a limited introduction, a few simple examples, and links to learn more.