Creating localvaluehelp for GuiXT fields

Localvaluehelp for GuiXT fields.

To add localvaluehelp to a GuiXT inputfield, please do the following:

  1. Create a directory in your script folder entitled 'localvaluehelp'.

  2. In the directory, create a file called 'Dom.E.MATR.txt'.

  3. Inside the file, type the following:

    T-BW03-05 //Material1
    T-BW03-06 //Material2
    T-BW03-07 //Material3
    T-BW03-08 //Material4
    				
  4. Save your changes and close the file.

  5. Add the following lines in the guixt.sjs file:

    historyonrightbutton = true;
            domains ="C:\\guixt\\localvaluehelp";
    				
  6. Open the VA01 script file and add the following code.

     inputfield([4,1],"Material",[4,10],{"name":"z_material","size":20});
    localvaluehelp("F[Material]",{"domain":"MATR"});
    text([4,35],"This example will display material values for this edit field on right click.");
    text([5,35],"Domain will be read from dom.Text.E.txt file"); 
    				
  7. Add the following code to the guixt.sjs file:

    historyonrightbutton=true;
    domains = "\\\\company.com\\localvaluehelp";
    				
  8. Save your changes and refresh the SAP screen.

  9. Right-click on the new field. The localvaluehelp will display as shown below:



Once the configurations are applied in the guixt.sjs file as described above, localvalue help can be invoked in a variety of ways. Methods include the following:

These methods will be demonstrated in the following examples: