データ テーブル: レポート (およびその他のオプション) を取得します。このウィッシュリストリクエストのきっかけは何ですか?
ユーザーがデータ テーブルに新しい行を追加したい場合、またはデータ テーブルを並べ替えたい場合、レポートが開かれているために Jmp ではこれが不可能になるリスクがあります。
ソート後にテーブルを更新するにはどうすればよいですか?
最悪の場合: JSL スクリプトは、ユーザーに次のようなエラー メッセージを表示して停止します。

多くの場合、レポートの順序や行に問題はなく、更新が必要なだけです。
改善してほしいことは何ですか?
問題を解決してください。
さまざまなアプローチ:
- すべてのユーザーがテーブルを更新 (行の追加、テーブルの並べ替え) し、レポートの更新をトリガーします。
- If there are reports which actually have an issue with the changes in the data table, ask the user if it's OK to close them.
For JSL, don't ask the user, provide an option:
sort(..., close reports with issues());
- Does an option like
sort( ..., ignoreEffectsOnReports())
make sense? - Provide a function
myAffectedReports = dt << get reports with issues();
which returns a list of reports with issues with added rows or sorted data tables.
Then the user can close the reports if he wants to.
- at least:
Provide a function
myReports = dt << get reports();
which returns a list with all reports with a link to the data table.
... independent of the actual name of the Window: アプリケーション内でデータテーブルをソートするにはどうすればよいですか?
Then the user can decide how he wants to continue ...
この考え方がなぜ重要なのでしょうか?
Jmp の現在の動作では、レポートを開いているときに行の追加やデータ テーブルの並べ替えなどの一部のアクションは実行できません。
他のプログラムでは、そのようなアクションは問題なく実行できます。
Jmp ユーザーの状況を改善する方法はいくつかあります。
最良のケース: ユーザーにまったく迷惑をかけずに、舞台裏ですべての機能が実行されます。
より多くの希望が提出されました
自動化とスクリプト作成Re: データ テーブル: レポート (およびその他のオプション) の取得回避策: 取得全てレポートを開き、dt に属するものを選択します。
https://community.jmp.com/t5/Discussions/How-to-update-table-after-sorting/mp/660847/highlight/true#M84975
closeMyReports = Function( {dt},
{default local},
AllmyReports = {};
myReports = Get Window List( Type( "Reports" ) );
For Each( {rep}, myReports,
Try(
myList = (rep << Xpath( "//OutlineBox" )) << get scriptable Object();
myDTs = Transform Each( {scriptableObject}, myList, If( Is Empty( scriptableObject ), ., scriptableObject << Get Data Table() ) );
If( Contains( myDTs, dt ),
Insert Into( AllmyReports, rep )
);
)
);
If( N Items( AllmyReports ) > 0,
If(
ex = New Window( "",
<<TYPE></TYPE>Re: データ テーブル: レポートの取得 (およびその他のオプション)同様の問題:
表: リンクされたすべてのサブセットを一覧表示する