テーブルボックス内のテーブル全体を置き換えることができる機能はありますか?空の/デフォルトのテーブルボックスが表示されているので、以下のスクリプトを使用してテーブルボックス全体を置き換えたいと思いました。[テーブルボックス]を更新する方法はありますか
私が今使っているこのスクリプトは退屈です。
button box("UPDATE",
dtmain = Open(filename, invisible);
tb << delete row( 1 );
tb << delete row( 1 );<BR /> // 50 lines of delete row()<BR />
tb << insert row( 1, {"a", 1} );
tb << insert row( 1, {"b", 2} ); <BR /> // 50 lines of insert row()
);前もって感謝します:)
再:テーブルボックス内のテーブル全体を置き換えることができる機能はありますか?更新するよりも、テーブルを削除して置き換える方が簡単であることがわかりました。 以下の簡単なスクリプトはその方法論を示しています
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
New Window( "The Table",
vlb = V List Box(),
theButton = Button Box( "UPDATE",
Try( theTable << delete );
theList = {};
Insert Into( theList, dt:Name[Random Integer( 1, 40 )] );
Insert Into( theList, dt:Name[Random Integer( 1, 40 )] );
theTable = Table Box( String Col Box( "Name", theList ) );
vlb << append( theTable );
)
);
// Initialize the table
theList = {};
Insert Into( theList, dt:Name[Random Integer( 1, 40 )] );
Insert Into( theList, dt:Name[Random Integer( 1, 40 )] );
theTable = Table Box( String Col Box( "Name", theList ) );
vlb << append( theTable );