alignright

The alignright option for inputfields is used to align the value entered in a field with the right-hand edge of that field.

The alignright option is used to align the value entered in a given inputfield with the right hand edge of that same inputfield. The syntax for this command is as follows:

{"alignright":true}

Example

To demonstrate the alignright option, please do the following:

  1. Open the Easy Access script file (SAPLSMTR_NAVIGATION.E0100.sjs) and enter the following code. Create the script file if it does not already exist.

    inputfield([4,5], "Inputfield Test", [4,20], {"name":"inpfld_1", "size":14});
  2. The screen now appears as follows:



  3. Change the code by adding the alignright option as shown below:

    inputfield([4,5], "Inputfield Test", [4,20], {"name":"inpfld_1", "size":14, "alignright":true});
  4. The Easy Access screen will now appear as shown below.



Note: If the alignright option is not present, or if it is set to 'false', the value will be aligned with the left-hand edge of the field.