<?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: copy value to multiple dropdown boxes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471449#M71594</link>
    <description>&lt;P&gt;I guess you have Table Box() with Col Box filled with Combo Boxes. Below are some ideas you could try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("",
	tb = Table Box(
		cb = Col Box("select",
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"})
		)
	)
);

cb &amp;lt;&amp;lt; Get; //won't work as it returns list with empty values
cb &amp;lt;&amp;lt; Get Text; // could use this and parse result
cb[1] &amp;lt;&amp;lt; get selected; // this should work, so you could loop over elements or get references to a list
(cb &amp;lt;&amp;lt; XPath("//ComboBox")) &amp;lt;&amp;lt; get selected; // my preferred method use XPath to get references and then &amp;lt;&amp;lt; get selected for values&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 20 Mar 2022 09:00:36 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-03-20T09:00:36Z</dc:date>
    <item>
      <title>copy value to multiple dropdown boxes</title>
      <link>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471430#M71593</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am performing this action too many times to not know how to copy selection from first row to the rest, can you advice?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPFan1_0-1647763809253.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40978iC762C62F9E5A1D3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPFan1_0-1647763809253.png" alt="JMPFan1_0-1647763809253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471430#M71593</guid>
      <dc:creator>JMPFan1</dc:creator>
      <dc:date>2023-06-10T20:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: copy value to multiple dropdown boxes</title>
      <link>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471449#M71594</link>
      <description>&lt;P&gt;I guess you have Table Box() with Col Box filled with Combo Boxes. Below are some ideas you could try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("",
	tb = Table Box(
		cb = Col Box("select",
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"})
		)
	)
);

cb &amp;lt;&amp;lt; Get; //won't work as it returns list with empty values
cb &amp;lt;&amp;lt; Get Text; // could use this and parse result
cb[1] &amp;lt;&amp;lt; get selected; // this should work, so you could loop over elements or get references to a list
(cb &amp;lt;&amp;lt; XPath("//ComboBox")) &amp;lt;&amp;lt; get selected; // my preferred method use XPath to get references and then &amp;lt;&amp;lt; get selected for values&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Mar 2022 09:00:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471449#M71594</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-20T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: copy value to multiple dropdown boxes</title>
      <link>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471450#M71595</link>
      <description>&lt;P&gt;Hi, thanks, any solution for non-developers? :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(not working with code unless i will have to :)&lt;/img&gt; )&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 09:16:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471450#M71595</guid>
      <dc:creator>JMPFan1</dc:creator>
      <dc:date>2022-03-20T09:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: copy value to multiple dropdown boxes</title>
      <link>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471451#M71596</link>
      <description>&lt;P&gt;Ah... you want to have same selection in all of the combo boxes as in first one? No idea if you can do it without scripting (if this is a JMP platform it might have button to change values, if custom script someone would have to script it somehow).&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 09:28:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-value-to-multiple-dropdown-boxes/m-p/471451#M71596</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-20T09:28:46Z</dc:date>
    </item>
  </channel>
</rss>

