Setting default checkbox

To set a checkbox as the default selection, pleae do the following.

  1. Open the 'SAPMV45A.E0101.sjs' script file. Create this file if it does not already exist. All additions will be made to this file.

    The default VA01 screen appears as follows:



  2. Add the following code to the checkbox we previously created:

    checkbox([11,15], "Check 1", {"name":"z_chkbx1", "default":"X"});
  3. Add two more checkboxes by adding the following code to the script file:

    checkbox([13,15], "Check3", {"name":"z_chkbx2"});
    checkbox([12,15], "Check2", {"name":"z_chkbx3});
  4. The screen now appears as follows:



Making checkboxes read-only

  1. Add the following code to the three checkboxes we previously created:

    "readonly":true
  2. The code will now appear as follows:

    checkbox([11,15], "Check1", {"name":"z_chkbx1", "readonly":true, "default":"x"});
    checkbox([13,15], "Check3", {"name":"z_chkbx2", "readonly":true});
    checkbox([12,15], "Check2", {"name":"z_chkbx3", "readonly":true});
  3. The VA01 screen will now appear as follows: