cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

URL link Is Not Working in Report

I am creating report from data table and add "Report" URL link at bottom of the report. However, the URL link is not working.

I am suspecting the way I get the URL link might be incorrect. Need community help to take a look if anything wrong on the code.

dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << Save( "$TEMP/" || Char( dt << get name )||".jmp" ); 
nm = "$TEMP/" || Char( dt << get name )||".jmp"; //Get URL link for the file

vb = V List Box();
dt << Get As Report;
vb << Append((dt << Get As Report));
vb << Append(Button Box("Report", Web("nm"), <<underlinestyle));

New Window ("Test", vb);

Report.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: URL link Is Not Working in Report

If I understand what you want, I think this code will give you what you want

txnelson_0-1630940239285.png

names default to here(1);
dt = Open( "$SAMPLE_DATA/big class.jmp" );
vb = V List Box();

vb << Append(dt << Get As Report);
vb << save html("$TEMP/" || Char( dt << get name )||".html");
vb << Append(Button Box("Report", Web("$TEMP/" || Char( dt << get name )||".html"), <<underlinestyle));

New Window ("Test", vb);

 

Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: URL link Is Not Working in Report

If I understand what you want, I think this code will give you what you want

txnelson_0-1630940239285.png

names default to here(1);
dt = Open( "$SAMPLE_DATA/big class.jmp" );
vb = V List Box();

vb << Append(dt << Get As Report);
vb << save html("$TEMP/" || Char( dt << get name )||".html");
vb << Append(Button Box("Report", Web("$TEMP/" || Char( dt << get name )||".html"), <<underlinestyle));

New Window ("Test", vb);

 

Jim
Craige_Hales
Super User

Re: URL link Is Not Working in Report

The original example had quotation marks around the variable name nm that were not needed -- web("nm"). I'm also not sure about the goal, but much to my surprise, the web command did re-open the JMP data table without the quotation marks.

 

Craige
Lino
Level III

Re: URL link Is Not Working in Report

It works. Thanks

Recommended Articles