ExecuteFormFieldScriptWithRepliesJSON

フォーム フィールドと JavaScript

説明

AcroForm フィールドのイベント スクリプトを実行し、JSON から決定論的な app.alert と app.response のホスト返信を再生します

構文

Delphi

Function TPDFlib.ExecuteFormFieldScriptWithRepliesJSON(Index, Action: Integer; Const Value, Change: WideString; SelStart, SelEnd, Flags: Integer; Const RepliesJSON: WideString): WideString;

パラメータ

Index1 起算のフォーム フィールド インデックス
Actionイベント セレクター。0 validate、1 calculate、2 format、3 keystroke
Valueevent.value に渡される候補フィールド値
Changekeystroke イベントで event.change に渡される挿入または置換テキスト
SelStart, SelEndkeystroke イベント前の 0 起算の選択範囲
Flags1 willCommit、2 fieldFull、4 keyDown、8 modifier、16 shift を組み合わせたビットマスク
RepliesJSONapp.alert のボタン コードと app.response の文字列、または null の順序付き型付き返信を含む JSON 配列かオブジェクト

戻り値

実行ステータス、結果の value、change、rc、選択範囲、消費したホスト ダイアログを報告する JSON オブジェクトを返します。

備考

スクリプト内の各 app.alert や app.response 呼び出しを、UI ダイアログを表示せずにリクエスト順で RepliesJSON の次のエントリと照合します。

必須の返信が欠けている、一致しない、未消納のまま残っている場合は、ドキュメントのフィールド変更を保留します。

関連項目

ExecuteFormFieldScriptJSON, SetFormScriptHostActionMode, GetFormScriptDiagnostics