You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

このステップでは、社員表示のスクリプトに機能を追加して、[社員]、[姓]、[名] フィールドの内容を Windows クリップボードにコピーします。


  1. デスティネーション画面「社員表示」のスクリプトを見つけます。

  2. 以下のファンクションを NavigateTo ファンクションの後、 //<SYSINFO> ブロックの前のスクリプトにコピーして貼り付けます。

       /* ====================================================== */
     /* ===================  uCopyEmpDetails  ================ */
       /* ====================================================== */
     /* Copies Employee Details to the Windows Clipboard       */

          uCopyEmpDetails : function () {

       /* Get details from 5250 screen */
        var TAB_Char = "x09" ;
        var End_Of_Line_Char = "x0Dx0A" ; 

        var strEmpno = GETVALUE("txtEmpno");
        var strGName = GETVALUE("txtGivename");
        var strSName = GETVALUE("txtSurname");

     /* Write details to clipboard */    var MyString = "";

       MyString = strEmpno + TAB_Char + strGName + TAB_Char + strSName + End_Of_Line_Char;
       COPYTOCLIPBOARD(MyString);

       /* Issue a message  */
       MESSAGE("Details for employee ", strEmpno," sent to the clipboard");

         } ,

      
  3. [変更をコミット] ボタンを使用して、スクリプトの変更をコミットします。
  • No labels