Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki MarkupINT010B – JSON サービス – クライアント・エージェント側のビジネス・ロジックの作成 これは非常に簡単なフォームで、ユーザーは部門コードと課コードを入力して \ [社員を取得\] というボタンをクリックします。 その後、プログラムによって該当する部門と課の社員リストが表示されます。フォームのビジュアル・デザインは以下のようになります。 !worddavaf485e25f57cd86bb5b0fc63f3f1b1cc.png|height=32,width=32! 1.      LANSA エディターの \[ファイル\]

その後、プログラムによって該当する部門と課の社員リストが表示されます。フォームのビジュアル・デザインは以下のようになります。
Image Added

  1. LANSA エディターの [ファイル] メニューから、作成/基本フォームで、iiiFRM05

...

...

  1. JSON

...

  1. を使用して社員を取得を作成します。このフォームは

...

  1. RDMLX対応にします。

    以下のコードをコピーして、このフォームに貼り付けます。
    CALL ステートメントを変更して、ファンクション iiiFN11 を呼び出すようにします。

    Function Options(*DIRECT)

...


  1. Begin_Com

...

  1. Role(*EXTENDS

...

  1. #PRIM_FORM)

...

  1. Clientwidth(798)

...

  1. Clientheight(425)

...

  1. Componentversion(2)

...

  1. Left(620)

...

  1. Top(190)

...


  1. Define_Com

...

  1. Class(#DEPTMENT.Visual)

...

  1. Name(#DEPTMENT)

...

  1. Displayposition(1)

...

  1. Left(17)

...

  1. Parent(#COM_OWNER)

...

  1. Tabposition(1)

...

  1. Top(16)

...


  1. Define_Com

...

  1. Class(#SECTION.Visual)

...

  1. Name(#SECTION)

...

  1. Displayposition(2)

...

  1. Left(14)

...

  1. Parent(#COM_OWNER)

...

  1. Tabposition(2)

...

  1. Top(49)

...


  1. Define_Com

...

  1. Class(#PRIM_PHBN)

...

  1. Name(#Button1)

...

  1. Displayposition(3)

...

  1. Left(272)

...

  1. Parent(#COM_OWNER)

...

  1. Tabposition(3)

...

  1. Top(24)

...

  1. Caption('検索')

...


  1. Define_Com

...

  1. Class(#PRIM_LTVW)

...

  1. Name(#ListView1)

...

  1. Columnbuttonheight(27)

...

  1. Componentversion(2)

...

  1. Displayposition(4)

...

  1. Fullrowselect(True)

...

  1. Keyboardpositioning(SortColumn)

...

  1. Left(23)

...

  1. Parent(#COM_OWNER)

...

  1. Showsortarrow(True)

...

  1. Tabposition(4)

...

  1. Top(94)

...

  1. Height(307)

...

  1. Width(730)

...


  1. Define_Com

...

  1. Class(#PRIM_LVCL)

...

  1. Name(#LVCL1)

...

  1. Displayposition(1)

...

  1. Parent(#ListView1)

...

  1. Source(#EMPNO)

...


  1. Define_Com

...

  1. Class(#PRIM_LVCL)

...

  1. Name(#LVCL2)

...

  1. Displayposition(2)

...

  1. Parent(#ListView1)

...

  1. Source(#SURNAME)

...

  1. Width(28)

...


  1. Define_Com

...

  1. Class(#PRIM_LVCL)

...

  1. Name(#LVCL3)

...

  1. Displayposition(3)

...

  1. Parent(#ListView1)

...

  1. Source(#GIVENAME)

...

  1. Width(25)

...


  1. Define_Com

...

  1. Class(#PRIM_LVCL)

...

  1. Name(#LVCL4)

...

  1. Displayposition(4)

...

  1. Parent(#ListView1)

...

  1. Source(#SALARY)

...

  1. Widthtype(Remainder)

...



  1. Def_List

...

  1. Name(#EMPS)

...

  1. Fields(#EMPNO

...

  1. #GIVENAME

...

  1. #SURNAME

...

  1. #SALARY)

...

  1. Type(*WORKING)

...

  1. Entrys(*MAX)

...



  1. Evtroutine

...

  1. Handling(#com_owner.CreateInstance)

...



  1. Set

...

  1. Com(#com_owner)

...

  1. Caption(*component_desc)

...



  1. Endroutine


    Evtroutine Handling(#Button1.Click)

...


  1. Exchange

...

  1. Fields(#DEPTMENT

...

  1. #SECTION)

...


  1. Call

...

  1. Process(*DIRECT)

...

  1. Function(iiiFN11)

...

  1. Exit_Used(*NEXT)

...

  1. Pass_Lst(#EMPS)

...



  1. Clr_List

...

  1. Named(#ListView1)

...


  1. Selectlist

...

  1. Named(#EMPS)

...


  1. Add_Entry

...

  1. To_List(#ListView1)

...


  1. Endselect

...


  1. Endroutine

...


  1. End_Com 

...



  1. フォームをコンパイルします。