Using the 'left' option

The left option draws a line from the text on the scren to the nearest input control or combobox to the right of the test. To demonstrate this, please do the following.

Note: The 'left' option also works with the inputfield and comment commands in WS and the GuiXT Server. This feature is supported in WS 1.2.228.0 and above and GuiXT Server 3.4.450.0 and above.
  1. Go to the Easy Access screen.
  2. Open the script file ('SAPLSMTR_NAVIGATION.E0100.sjs') and enter the following code. Create the script file if it does not exist.
    text([12,4], "Text command without the 'left' option."); 
    	inputfield([12,70], "Test 1", [12, 80], {"size":10});
  3. Save the changes and refresh the SAP screen. It will now display as shown below:
  4. Change the script to that shown below.
    text([12,4], "Text command with the 'left' option.", {"left":true}); 
    	inputfield([12,70], "Test 1", [12, 80], {"size":10});
  5. Save the changes and refresh the SAP screen. It will now display as shown below.