<?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: JSL: &amp;lt;&amp;lt;add context syntax in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845273#M101992</link>
    <description>&lt;P&gt;I assume it is used for something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("Example",
	ob1 = Outline Box("Outline Box",
		tb1 = table box(string col box("A", {"A", "B", "C"})),
	),
	ob2 = Outline Box("Outline Box",
		table box(string col box("A", {"D", "E", "F"})),
	)
);

ob1 &amp;lt;&amp;lt; Add Context("Context", "First OB");
ob2 &amp;lt;&amp;lt; Add Context("Context", "Second OB");

tb1 &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1741017997051.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73498iF26805EC8FFCFBDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1741017997051.png" alt="jthi_0-1741017997051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 16:06:50 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-03-03T16:06:50Z</dc:date>
    <item>
      <title>JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845226#M101986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use the &amp;lt;&amp;lt;add context function for an outline box as reported in the scripting index.&amp;nbsp; The purpose is to add information to be used by "make combined data table"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w=new window("my window", ob=outline box("my outline"));

ob&amp;lt;&amp;lt;add context (...???);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The description in the scripting index does not explain how to pass the "key-value" pair mentioned.&amp;nbsp; I tried different options but with no result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matteo_patelmo_0-1741010168523.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73495i55B41292F039A4AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matteo_patelmo_0-1741010168523.png" alt="matteo_patelmo_0-1741010168523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;BR /&gt;Matteo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 13:57:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845226#M101986</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2025-03-03T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845237#M101987</link>
      <description>&lt;P&gt;I am not familiar with this option, but here is what I found for documentation from JMP version 16&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1741010719501.png" style="width: 660px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73496i2BDA5537E3BA84E0/image-dimensions/660x221?v=v2" width="660" height="221" role="button" title="txnelson_0-1741010719501.png" alt="txnelson_0-1741010719501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:05:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845237#M101987</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-03-03T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845238#M101988</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;for your support, unfortunately this will not address my need.&amp;nbsp; Let's see if someone else has suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 15:01:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845238#M101988</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2025-03-03T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845273#M101992</link>
      <description>&lt;P&gt;I assume it is used for something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("Example",
	ob1 = Outline Box("Outline Box",
		tb1 = table box(string col box("A", {"A", "B", "C"})),
	),
	ob2 = Outline Box("Outline Box",
		table box(string col box("A", {"D", "E", "F"})),
	)
);

ob1 &amp;lt;&amp;lt; Add Context("Context", "First OB");
ob2 &amp;lt;&amp;lt; Add Context("Context", "Second OB");

tb1 &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1741017997051.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73498iF26805EC8FFCFBDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1741017997051.png" alt="jthi_0-1741017997051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 16:06:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845273#M101992</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-03T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845274#M101993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6337"&gt;@matteo_patelmo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a mess around with the function, seems its used to create a column and rows into the make combined data table. You could use this to bring in current user generating the report (tracking it with a function) or date or report creation (as some ideas)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w=new window("my window", ob=outline box("my outline", Table Box(
			String Col Box( "names",
				{"x", "y", "z"}
			),
			Number Col Box( "values",
				{11, 22, 33}
			),
			Plot Col Box( "values",
				{11, 22, 33}
			)
		)));


ob&amp;lt;&amp;lt;add context("Source", "Study 1");
ob&amp;lt;&amp;lt;add context("Created by", "Ben");

//Hit 'make combined data table' to have these brought in as column headers
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 16:11:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845274#M101993</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-03-03T16:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845768#M102022</link>
      <description>&lt;P&gt;Thanks, this is what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 08:06:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845768#M102022</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2025-03-04T08:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845769#M102023</link>
      <description>&lt;P&gt;Thanks, this is what I need it for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 08:07:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/845769#M102023</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2025-03-04T08:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: &lt;&lt;add context syntax</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/847351#M102208</link>
      <description>&lt;P&gt;Just wanted to say that this was a great find, I did not know about the &amp;lt;&amp;lt;Add Context() message you could send to a display box. &amp;nbsp;It solved a problem for me right way, making one of my scripts much easier and more efficient. &amp;nbsp;Great example of the knowledge sharing that happens on the Community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if this was better documented. &amp;nbsp;For instance, I think I have discovered that the context pairs have to be strings, e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// this works
box &amp;lt;&amp;lt; Add Context("a", "2")
// this does not work
box &amp;lt;&amp;lt; Add Context("a", 2)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:36:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-lt-lt-add-context-syntax/m-p/847351#M102208</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2025-03-11T16:36:10Z</dc:date>
    </item>
  </channel>
</rss>

