<?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: Using Character Variables with SetData in Tree Nodes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818926#M99713</link>
    <description>&lt;P&gt;You will have to evaluate the list, for example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

Title = "Test";
C1 = Tree Node(Title);
C1 &amp;lt;&amp;lt; SetData(Eval List({Title, "", 1}));
Show(C1 &amp;lt;&amp;lt; Get Data);
// C1 &amp;lt;&amp;lt; Get Data = {"Test", "", 1};
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Nov 2024 09:28:21 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-11-25T09:28:21Z</dc:date>
    <item>
      <title>Using Character Variables with SetData in Tree Nodes</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818916#M99712</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I hope to use "Set data" to configure the information in the tree node. However, the variable usage does not meet my expectations. As shown in the JSL below, I want to record the text "Test" in the variable Title and set it into C1, so that Show(C1) displays as C1 &amp;lt;&amp;lt; Get Data = {"Test", "", 1};&lt;BR /&gt;The results of using a variable (C1 situation) and directly using text data&amp;nbsp;(C2 situation) for setData differ, which leads to errors when I later attempt to retrieve the data. How can I use a variable to set data so that I can obtain the same result as directly setting "Test" with setData?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Title = "Test";
C1 = Tree Node( Title );
C1 &amp;lt;&amp;lt; SetData( {Title, "", 1} );
Show( C1 &amp;lt;&amp;lt; Get Data );
Show(( C1 &amp;lt;&amp;lt; Get Data )[1] );

C2 = Tree Node( "Test2" );
C2 &amp;lt;&amp;lt; SetData( {"Test2", "", 1} );
Show( C2 &amp;lt;&amp;lt; Get Data );
Show( (C2 &amp;lt;&amp;lt; Get Data) [1] );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2024 09:18:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818916#M99712</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2024-11-25T09:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Character Variables with SetData in Tree Nodes</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818926#M99713</link>
      <description>&lt;P&gt;You will have to evaluate the list, for example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

Title = "Test";
C1 = Tree Node(Title);
C1 &amp;lt;&amp;lt; SetData(Eval List({Title, "", 1}));
Show(C1 &amp;lt;&amp;lt; Get Data);
// C1 &amp;lt;&amp;lt; Get Data = {"Test", "", 1};
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2024 09:28:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818926#M99713</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-25T09:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Character Variables with SetData in Tree Nodes</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818927#M99714</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Thank you for swiftly and accurately resolving the issue I encountered.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Nov 2024 09:42:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Character-Variables-with-SetData-in-Tree-Nodes/m-p/818927#M99714</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2024-11-25T09:42:27Z</dc:date>
    </item>
  </channel>
</rss>

