I have had to do something like this year or two ago. I started by saving jmp table as html report, then taking a look at the source code and then figuring out how I should modify it. There might also be better ways to do this, but maybe this will help you (this has been tested with JMP15.2, so not sure if it will work with JMP12):
Approximate flow:
- Create new column (URL) with html a href
- Create new window with outline box
- Append the datatable as a report to the outline box
- Get html string out of the outline box
- Using regex replace <, >, \!" with corresponding html entities
- Save the modified html string to desired location
Example code:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << New Column("URL",
Character,
"Nominal",
Formula("<a href=\!"file://" || :name || ".html\!" target=\!"_blank\!">"||:name||"</a>"),
);
nw = New Window("",
ob = OutlineBox();
);
ob << Append(dt << get as report);
htmlString = ob << get html;
htmlString = Regex(htmlString, "<", "<", GLOBALREPLACE);
htmlString = Regex(htmlString, ">", ">", GLOBALREPLACE);
htmlString = Regex(htmlString, """, "\!"", GLOBALREPLACE);
Save Text File("$TEMP/test.html",htmlString);
Result:
-Jarmo