<?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 Set Editiable rows with formula column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769426#M95007</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i am trying to create a datatble with user restricted&amp;nbsp; rows and columns. I have a default value column ( its default value for all column values in that row) i have coded this as formula in other columns ... but i am not able to have user input if i have formula ... i need flexibility for user to enter data&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;n = 10;
rownList = {};
For(i=1, i&amp;lt;=n, i++,
	Insert Into(rownList, "Row " || Char(i));
);
dt =  New Table("Restricted Row Value Table",
	Add Rows(n),
	New Column( "Row Number",Character,"Nominal",Set Values(rownList),Color Cells( {77, {0}} ))
);
dt &amp;lt;&amp;lt; New Column("Default Row State","Nominal",Color Cells( {-14803425, {0}} ));
For(i=1, i&amp;lt;=n, i++,
	dt &amp;lt;&amp;lt; New Column("Column " || Char(i),"Nominal",
		Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
	);
);
dt &amp;lt;&amp;lt; Set Edit Lock( "Add Rows", "Add Columns", "Delete Columns" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;how do i rewite formula such that it allows user input but takes default value if specified ... kindly guide... Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jun 2024 21:01:05 GMT</pubDate>
    <dc:creator>ComplexNerd</dc:creator>
    <dc:date>2024-06-30T21:01:05Z</dc:date>
    <item>
      <title>Set Editiable rows with formula column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769426#M95007</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i am trying to create a datatble with user restricted&amp;nbsp; rows and columns. I have a default value column ( its default value for all column values in that row) i have coded this as formula in other columns ... but i am not able to have user input if i have formula ... i need flexibility for user to enter data&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;n = 10;
rownList = {};
For(i=1, i&amp;lt;=n, i++,
	Insert Into(rownList, "Row " || Char(i));
);
dt =  New Table("Restricted Row Value Table",
	Add Rows(n),
	New Column( "Row Number",Character,"Nominal",Set Values(rownList),Color Cells( {77, {0}} ))
);
dt &amp;lt;&amp;lt; New Column("Default Row State","Nominal",Color Cells( {-14803425, {0}} ));
For(i=1, i&amp;lt;=n, i++,
	dt &amp;lt;&amp;lt; New Column("Column " || Char(i),"Nominal",
		Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
	);
);
dt &amp;lt;&amp;lt; Set Edit Lock( "Add Rows", "Add Columns", "Delete Columns" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;how do i rewite formula such that it allows user input but takes default value if specified ... kindly guide... Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 21:01:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769426#M95007</guid>
      <dc:creator>ComplexNerd</dc:creator>
      <dc:date>2024-06-30T21:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Editiable rows with formula column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769436#M95008</link>
      <description>&lt;P&gt;Change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;from a Formula() to Set Each Value()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Each Value( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the column will have real values rather than a formula, thus allowing for editing&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 21:10:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769436#M95008</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-30T21:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Editiable rows with formula column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769437#M95009</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thanks for reply ... But set each value() is not dynamic...&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;when user enters data in "default row value" it applies to all others&amp;nbsp; but doesnt allow any user input to that column,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Set Each Value( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is applied only during the first execution ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any way formula can accomodate user input?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 21:23:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769437#M95009</guid>
      <dc:creator>ComplexNerd</dc:creator>
      <dc:date>2024-06-30T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Editiable rows with formula column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769440#M95010</link>
      <description>&lt;P&gt;This method for you might work.&amp;nbsp; Use a hidden column that has a formula that sets the value in a different column.&amp;nbsp; The column that has the value set remains editable, since it does not contain a column formula.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1719785956521.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65738i2F815EEAFF9EB973/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1719785956521.png" alt="txnelson_0-1719785956521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Examplel",
	Add Rows( 10 ),
	New Column( "Default Row State",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [., 3, ., ., 44, ., 8, ., ., .] )
	),
	New Column( "formula column",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			If( Is Empty( :Default Row State ) &amp;amp; :Default Row State != :Formula Column,
				:Output Column[Row()] = .,
				:Output Column[Row()] = :Default Row State
			);
			:Formula Column = :Default Row State;
		),
		Hide
	),
	New Column( "Output Column",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [., 3, ., ., 888, ., 8, ., ., .] )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 17:54:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Editiable-rows-with-formula-column/m-p/769440#M95010</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-17T17:54:16Z</dc:date>
    </item>
  </channel>
</rss>

