<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Saving a table box window with HTML links as HTML Report in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253930#M49858</link>
    <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 12:22:41 GMT</pubDate>
    <dc:creator>John_Powell_JMP</dc:creator>
    <dc:date>2020-03-24T12:22:41Z</dc:date>
    <item>
      <title>Saving a table box window with HTML links as HTML Report</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/252342#M49534</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In JMP12, I have a scripted table box with hyperlinks that I want to save as an HTML report (or any other type of report that will keep the hyperlinks active). I get an error from JMP while saving the report with no error description in the log except "unknown".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything I am missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the sample script below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path = Get Default Directory();
alist = {"a", "b", "c"};
nlist = {1, 2, 3};

disp_name = {"JMP Home Page", "JMP Home Page", "JMP Home Page"};

link = "https://www.jmp.com/en_us/home.html";

nw = New Window( "Buttons in Tablebox",
	tb = Table Box( String Col Box( "ABC", alist ), Number Col Box( "123", nlist ), bb = Col Box( "Links" ) )
);

bblist = {};
For( i = 1, i &amp;lt;= N Items( alist ), i++,
	bb_expr = Eval Insert(
		"\[bblist[i] = buttonbox(disp_name[Eval(i)], Web(WO_links[Eval(i)]), &amp;lt;&amp;lt;underlinestyle)]\"
	);
	Eval( Parse( bb_expr ) );
	bb &amp;lt;&amp;lt; append( bblist[i] );
);

nw &amp;lt;&amp;lt; Save HTML( path || "test.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 12:03:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/252342#M49534</guid>
      <dc:creator>noviJSL</dc:creator>
      <dc:date>2020-03-16T12:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table box window with HTML links as HTML Report</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253269#M49722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17951"&gt;@noviJSL&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our HTML and Interactive HTML export capabilities&amp;nbsp;are only a subset compared to JMP, but we're expanding the capability with every release.&lt;/P&gt;
&lt;P&gt;You may have heard that anything not yet supported in Interactive HTML will be mentioned in the log. When you use 'Save HTML', you do not get these warnings in the log, but you should when you use 'Save Interactive HTML'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TableBox is not currently supported in Interactive HTML, so you would need to build your "table" with something that is supported. Like 'H List Box' and 'V List Box'. Also, the expression that is within the 'Web' command cannot be evaluated within the web page as we do not have a JSL language interpreter in our web (JavaScript) code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With some small changes, the expression in the Web command can be evaluated as your 'table' is created.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example that does this. The resulting 'table' isn't as tidy looking as a real table, but maybe you can find ways to add spacing to align things better.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path = Get Default Directory();
alist = {"a", "b", "c"};
nlist = {1, 2, 3};

disp_name = {"JMP Home Page", "JMP Home Page", "JMP Home Page"};

link = "https://www.jmp.com/en_us/home.html";

nw = New Window( "Buttons in NW", v = V List Box());
// header row
h = H List Box ();
h &amp;lt;&amp;lt; append(TextBox( "ABC" ));
h &amp;lt;&amp;lt; append(TextBox( "123" ));
h &amp;lt;&amp;lt; append(TextBox( "Links" ));
v &amp;lt;&amp;lt; append( h );

For ( i = 1, i &amp;lt;= N Items( alist ), i++, (
	r = H List Box();
	r &amp;lt;&amp;lt; append(TextBox( alist[ i ]));
	r &amp;lt;&amp;lt; append(TextBox( nlist[ i ]));
	bb_expr = Eval Insert(
		"\[bb = buttonbox(disp_name[Eval(i)], Web("^link^"), &amp;lt;&amp;lt;underlinestyle)]\"
	);
	Eval( Parse( bb_expr ) );
	r &amp;lt;&amp;lt; append( bb );
	v &amp;lt;&amp;lt; append( r );
));

nw &amp;lt;&amp;lt; Save Interactive HTML("$DESKTOP/test.htm" );
open("$DESKTOP/test.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One disclaimer: I ran this in JMP 13, the oldest version of JMP I had installed. It may need some adjustment to work in JMP 12.&lt;/P&gt;
&lt;P&gt;I hope this gets you closer to what you need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~John&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 01:08:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253269#M49722</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2020-03-20T01:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table box window with HTML links as HTML Report</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253859#M49846</link>
      <description>&lt;P&gt;Thanks! This works for what I am looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:01:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253859#M49846</guid>
      <dc:creator>noviJSL</dc:creator>
      <dc:date>2020-03-23T21:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table box window with HTML links as HTML Report</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253930#M49858</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:22:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-table-box-window-with-HTML-links-as-HTML-Report/m-p/253930#M49858</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2020-03-24T12:22:41Z</dc:date>
    </item>
  </channel>
</rss>

