Page History
...
以下の例のように、デスティネーション画面の到着スクリプトからファンクションを呼び出します。
| Code Block |
|---|
vHandle_ARRIVE: function(oPayload, oPreviousForm) { var bReturn = true; SHARED.apply5250FunctionKeyPatterns(22,23); /* Must be before SHOW_CURRENT_FORM() */ SHOW_CURRENT_FORM(true); /* Show the form in the framework and show VLF buttons */ HIDE_5250_BUTTONS(); /* Hide any 5250 style buttons displayed */ GET_FORM_MESSAGE(22); /* Extract messages and hide the message line */ SETBUSY(false); /* Last thing done - turn off the busy state */ |
...
* |
...
/ |
SHOW_CURRENT_FORM(true); /* Show the form in the framework and show VLF buttons */ HIDE_5250_BUTTONS(); /* Hide any 5250 style buttons displayed */ GET_FORM_MESSAGE(22); /* Extract messages and hide the message line */ SETBUSY(false); /* Last thing done - turn off the busy state */ここでは、到着画面の行 22 および 23 で Fn=xxxx テキスト・パターンを検索し、RAMP-TS ボタンとファンクション・キーをこれらのパターンと一致させます。これらは単にテキスト・パターンであり、プログラムでは 5250 画面でどのファンクション・キーが実際に有効になっているかとはまったく関係ありません。 テキスト・パターンは 5250 画面上に表示されユーザーが読むためのもので、コンピュータ・プログラムのためのものではありません。
...
このファンクションには以下のパラメータがあります。
開始行番号 | 必須 整数 Fn=xxxx パターンを検索する最初の行。パターンを検索する最初の行 |
|---|---|
終了行番号 | 任意 整数 Fn=XXXXX パターンを検索する最後の行 デフォルト値は開始行番号と同じ値です。 |
常に有効にするキー/ボタン | 任意 ファンクション・キー識別子の配列 例: [KeyEnter,KeyF11] |
常に無効にするキー/ボタン | 任意 ファンクション・キー識別子の配列 例: [ KeyF12, KeyF3 ] |
...