<?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 Number edit box not updating column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563057#M77614</link>
    <description>&lt;P&gt;I am trying to update a column with a formula given a text edit box input. I have attempted other solutions found on the discussions page but with no luck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the beginning of my code I define the area as 1 as a default. This is also the default value inside of the number edit box:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;area = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column that uses the area variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "Current Density",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Formula( column(7) / area )
) &amp;lt;&amp;lt; Move Selected Columns( {:Current Density}, after( column(7)) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I have the function of the button. The hope is that it will take the updated value, plug it into the column and then rerun the formula in order to then update the plots I have in my JMP app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NEB1 &amp;lt;&amp;lt; Set Function(
					NEB1 = Number Edit Box();
					dt &amp;lt;&amp;lt; set table variable( "area", NEB1 &amp;lt;&amp;lt; get );
				);
				NEB1 &amp;lt;&amp;lt; Set Number Changed(
					NEB1 = Number Edit Box();
					dt &amp;lt;&amp;lt; set table variable( "area", NEB1 &amp;lt;&amp;lt; get );
					dt &amp;lt;&amp;lt; Rerun Formulas;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently it returns the variable as "."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are other possibly relevant settings for NEB1&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;				NEB1 &amp;lt;&amp;lt; Set( 1 );
				NEB1 &amp;lt;&amp;lt; Set Lock( 0 );
				NEB1 &amp;lt;&amp;lt; Set Minimum( 0 );
				NEB1 &amp;lt;&amp;lt; Set Exclude Minimum( 1 );
				NEB1 &amp;lt;&amp;lt; Set Maximum( . );
				NEB1 &amp;lt;&amp;lt; Set Exclude Maximum( 1 );
				NEB1 &amp;lt;&amp;lt; Set Increment( . );
				NEB1 &amp;lt;&amp;lt; Set Integer Only( 0 );
				&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm not sure what I'm doing wrong. Any help to return a number and update the column would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:29:00 GMT</pubDate>
    <dc:creator>trevorphysics</dc:creator>
    <dc:date>2023-06-11T11:29:00Z</dc:date>
    <item>
      <title>Number edit box not updating column</title>
      <link>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563057#M77614</link>
      <description>&lt;P&gt;I am trying to update a column with a formula given a text edit box input. I have attempted other solutions found on the discussions page but with no luck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the beginning of my code I define the area as 1 as a default. This is also the default value inside of the number edit box:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;area = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column that uses the area variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "Current Density",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Formula( column(7) / area )
) &amp;lt;&amp;lt; Move Selected Columns( {:Current Density}, after( column(7)) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I have the function of the button. The hope is that it will take the updated value, plug it into the column and then rerun the formula in order to then update the plots I have in my JMP app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NEB1 &amp;lt;&amp;lt; Set Function(
					NEB1 = Number Edit Box();
					dt &amp;lt;&amp;lt; set table variable( "area", NEB1 &amp;lt;&amp;lt; get );
				);
				NEB1 &amp;lt;&amp;lt; Set Number Changed(
					NEB1 = Number Edit Box();
					dt &amp;lt;&amp;lt; set table variable( "area", NEB1 &amp;lt;&amp;lt; get );
					dt &amp;lt;&amp;lt; Rerun Formulas;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently it returns the variable as "."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are other possibly relevant settings for NEB1&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;				NEB1 &amp;lt;&amp;lt; Set( 1 );
				NEB1 &amp;lt;&amp;lt; Set Lock( 0 );
				NEB1 &amp;lt;&amp;lt; Set Minimum( 0 );
				NEB1 &amp;lt;&amp;lt; Set Exclude Minimum( 1 );
				NEB1 &amp;lt;&amp;lt; Set Maximum( . );
				NEB1 &amp;lt;&amp;lt; Set Exclude Maximum( 1 );
				NEB1 &amp;lt;&amp;lt; Set Increment( . );
				NEB1 &amp;lt;&amp;lt; Set Integer Only( 0 );
				&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm not sure what I'm doing wrong. Any help to return a number and update the column would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:29:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563057#M77614</guid>
      <dc:creator>trevorphysics</dc:creator>
      <dc:date>2023-06-11T11:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Number edit box not updating column</title>
      <link>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563068#M77615</link>
      <description>&lt;P&gt;Here is how I would most likely approach this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = New Table("Untitled",
	Add Rows(4),
	New Table Variable("area", 3),
	New Column("Column 1", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 4])),
	New Column("Column 2", Numeric, "Continuous", Format("Best", 12), Formula(:Column 1 * :area))
);

nw = New Window("window",
	Number Edit Box(:area, &amp;lt;&amp;lt; set function(function({this},
		dt &amp;lt;&amp;lt; Set Table Variable("area", this &amp;lt;&amp;lt; get);
		dt &amp;lt;&amp;lt; Rerun Formulas;
	)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note how table variable is referenced in the formula&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:50:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563068#M77615</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-01T19:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Number edit box not updating column</title>
      <link>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563098#M77618</link>
      <description>&lt;P&gt;This seems to have worked. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 20:46:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-edit-box-not-updating-column/m-p/563098#M77618</guid>
      <dc:creator>trevorphysics</dc:creator>
      <dc:date>2022-11-01T20:46:05Z</dc:date>
    </item>
  </channel>
</rss>

