Versions Compared

Key

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

...

  1. Create a new WAM:

         Name: iiiTestLayout
         Description: Test layout iii_layout
         Layout weblet: iii_layout

...


  1. Add the following RDMLX code after the Begin_com and compile the WAM.

...

  1.      Define Field(#empnow)

...

  1.  Reffld(#empno)
    Def_

...

  1. List Name(#empskills)

...

  1.  Fields(#SKILCODE #GRADE #COMMENT #DATEACQ #GRADEDES) Type(*Working)
    Web_

...

  1. Map For(*both)

...

  1.  Fields((

...

  1. #stdrentry *hidden))

...


  1. Webroutine Name(begin)

...

  1.  Desc('

...

  1. Employee Details and Skills')
    Web_

...

  1. Map For(*both)

...

  1.  Fields((

...

  1. #EMPNO *out)

...

  1.  #SURNAME #GIVENAME #ADDRESS1 #ADDRESS2 #ADDRESS3 #POSTCODE #PHONEHME #PHONEBUS #DEPTMENT #SECTION #SALARY #STARTDTE #TERMDATE #empskills (#empnow *hidden))

...


  1. Case (#stdrentry)

...


  1. When (=

...

  1.  U)
    #empno := #empnow
    Update Fields(*all)

...

  1.  In_File(pslmst)

...

  1.  With_Key(#empno)

...


  1. Otherwise
    Select Fields(*all)

...

  1.  From_File(pslmst)

...


  1. Leave
    Endselect
    #empnow := #empno
    Clr_List Named(#empskills)
    Select Fields(#empskills) From_File(pslskl)

...

  1.  With_Key(#empno)
    Add_

...

  1. Entry To_List(#empskills)

...


  1. Endselect
    Endcase
    Endroutine

  2. Open the begin WebRoutine in the Design view.

    1. Add a

...

    1. column to the employee fields table.

...


    1. Drop a push button into the top of the new column

...


    1. Remove the place holder characters.

...


    1. Select the push button and set up its properties as:

      Property

      Value

      Caption

      Save

      On_click_wrname

      Begin

      submitExtraFields


      Field Name: STDRENTRY

...

    1. Literal Value: U

...



    1. Complete the submitExtraFields property using the Ellipsis button:
      Image Modified

...


    1. Save your changes.

...


    1. Execute the WAM in the browser. Your web page should look like the following:
      Image Modified

...


  1. Clear the surname and given name fields and click the Save button. Validation errors should be displayed in the messages weblet at the top of the content area, as shown:

    Image Modified

...


  1. Try out the menu bar. Notice that the menu items appearance changes for hover and selection. This is controlled by the theme style sheet defined by the external resource XWT08L101.