<?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: Adding an image from a data table to output in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/84647#M37877</link>
    <description>&lt;P&gt;You did not mention what type of container you will be using. If a Window with a table, JMP 14 has a column property called an Event Handler. Also there was an interesting discussion regarding hyperlinks in a Text Box&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Hyperlinks-in-Text-Box-or-Text-Edit-Box/m-p/77426#M36194" target="_self"&gt;Hyperlinks-in-Text-Box&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I attached a script with and example of a table with a picture and an Event Handler. The blog would not allow me to add a file with extension .jsl, so I added a .txt.&amp;nbsp; Download the&amp;nbsp; file and drop the .txt extension to open in JMP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The JMP sample datatable SAS Offices.jmp provides another example of an Event Handler for a data table.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 15:48:49 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-11-30T15:48:49Z</dc:date>
    <item>
      <title>Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/84614#M37868</link>
      <description>&lt;P&gt;With a JSL script, I'm trying to construct a display that will show a small table of 4 rows and 2 columns. The rows in the first column of this table will be the names of 4 columns of the data table. The values in the 2nd column of my output will be pulled from the 4 columns of my data table, depending on selection criteria that I will program into the script. Along with the table, I want to display an image which is stored in another column of my data table. This column is formatted as an expression column. I know how to get images into the column, but how do I reference those images in a JSL script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 20:46:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/84614#M37868</guid>
      <dc:creator>bwwhite</dc:creator>
      <dc:date>2018-11-27T20:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/84647#M37877</link>
      <description>&lt;P&gt;You did not mention what type of container you will be using. If a Window with a table, JMP 14 has a column property called an Event Handler. Also there was an interesting discussion regarding hyperlinks in a Text Box&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Hyperlinks-in-Text-Box-or-Text-Edit-Box/m-p/77426#M36194" target="_self"&gt;Hyperlinks-in-Text-Box&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I attached a script with and example of a table with a picture and an Event Handler. The blog would not allow me to add a file with extension .jsl, so I added a .txt.&amp;nbsp; Download the&amp;nbsp; file and drop the .txt extension to open in JMP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The JMP sample datatable SAS Offices.jmp provides another example of an Event Handler for a data table.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 15:48:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/84647#M37877</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-11-30T15:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86595#M38626</link>
      <description>&lt;P&gt;I have my images in a JMP data table using a script similar to the one you attached. However, now I want to output the images into some type of JMP report. I'm not sure what kind of container would I use? If I just wanted a simple table with the name of the image and the image itself, how would that script segment look?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 16:23:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86595#M38626</guid>
      <dc:creator>bwwhite</dc:creator>
      <dc:date>2019-01-02T16:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86601#M38629</link>
      <description>&lt;P&gt;Check out Justin's and my &lt;A href="https://community.jmp.com/t5/Discovery-Summit-2018/Supercharge-Your-User-Interfaces-in-JSL-US-2018-113/ta-p/73744" target="_self"&gt;presentation &lt;/A&gt;at the latest Discovery conference in Cary.&amp;nbsp; One of the scripts shows how to display an image stored in a table cell.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 17:52:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86601#M38629</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2019-01-02T17:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86605#M38630</link>
      <description>&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;dt = Open( "$sample_data/big class families.jmp" );
New Window( "people", 
	vlistbox(
	picholder = Border Box( Text Box( "" ) ), 
	namebox = textbox(""),
	Button Box( "next", advance() )
	)
);
curRow = 0;
advance = Function( {},
	{},
	curRow += 1;
	If( curRow &amp;gt; N Rows( dt ),
		curRow = 1
	);
	(picholder &amp;lt;&amp;lt; child) &amp;lt;&amp;lt; delete;
	picholder &amp;lt;&amp;lt; append( dt:picture[curRow] );
	namebox&amp;lt;&amp;lt;settext(dt:name[curRow]);
);
advance(); // initialize first image in window
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Window with picture from data table" style="width: 512px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14957i324D74ACAD0E33A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Window with picture from data table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Window with picture from data table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 18:22:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86605#M38630</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-01-02T18:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86613#M38633</link>
      <description>&lt;P&gt;From my first response,&amp;nbsp;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;responses, you can see that there are numerous JMP options for creating displays. What you script depends upon what characteristics you want for the final "report".&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Will the person viewing the report be using JMP to open a Journal, a table, a .jrp file, an application? Do you want dynamic controls like a next button, or selection boxes, or just a long display with simple scrolling?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Or will the person viewing not use JMP and they will be using a webpage, a PPT file, a PDF or WORD doc?&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I have a large number of displays (&amp;gt;20) and the consumer of the report will not be using JMP, I create a custom PPTX report or create a web report with a list and a dynamic selector of names to display the picture (which requires a little html scripting).&amp;nbsp; When the consumer will be using JMP, I use dynamic controls with buttons and pic lists or trees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is another script&amp;nbsp; (TableBoxwithPics.jsl) that creates of a JMP report that can be journaled or saved in an alternate static output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 523px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14962iE2D2E56C163EC3DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&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>Wed, 02 Jan 2019 19:39:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/86613#M38633</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-01-02T19:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image from a data table to output</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/90746#M38735</link>
      <description>&lt;P&gt;Thanks to all the replies I got to this post. Each reply helped me learn more about JMP and about how to get to my final solution. I had to choose one to accept as the solution and it was the one that most directly resembles my final result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 15:24:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-an-image-from-a-data-table-to-output/m-p/90746#M38735</guid>
      <dc:creator>bwwhite</dc:creator>
      <dc:date>2019-01-04T15:24:45Z</dc:date>
    </item>
  </channel>
</rss>

