数式列で編集可能な行を設定するこんにちは、
ユーザーが制限する行と列を持つデータテーブルを作成しようとしています。既定値の列 (その行のすべての列値の既定値) があり、これを他の列で数式としてコード化しましたが、数式があるとユーザー入力ができません。ユーザーがデータを入力できる柔軟性が必要です。
n = 10;
rownList = {};
For(i=1, i<=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 << New Column("Default Row State","Nominal",Color Cells( {-14803425, {0}} ));
For(i=1, i<=n, i++,
dt << New Column("Column " || Char(i),"Nominal",
Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
);
);
dt << Set Edit Lock( "Add Rows", "Add Columns", "Delete Columns" );ユーザー入力を許可し、指定された場合はデフォルト値を取得するように数式を書き直すにはどうすればよいですか... ご指導ください... よろしくお願いします
自動化とスクリプトRe: 数式列で編集可能な行を設定する変化
Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
式() から各値() を設定する
Set Each Value( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
列には数式ではなく実際の値が含まれるため、編集が可能になります。
Re: 数式列で編集可能な行を設定する@txnelson返信ありがとうございます...ただし、各値を設定する() は動的ではありません...
Formula( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
ユーザーが「デフォルトの行値」にデータを入力すると、他のすべての列に適用されますが、その列へのユーザー入力は許可されません。
Set Each Value( If( Is Empty( :Default Row State ), Empty(), :Default Row State ) )
最初の実行時にのみ適用されます...
数式がユーザー入力に対応できる方法はありますか?
Re: 数式列で編集可能な行を設定するこの方法がうまくいくかもしれません。別の列に値を設定する数式を持つ非表示の列を使用します。値が設定されている列は、列数式が含まれていないため、編集可能なままです。

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 ) & :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, ., ., .] )
)
)