Liquid UI - WS Reference Library

Liquid UI: Load Command


Prerequisites


Runs On

  SAP GUI Android iOS WM Web
Direct Connect          
Liquid UI Server Connect        

Purpose

The load command is used to load an external file. Once the file is loaded, anything included in the file will be available for global use in WS scripts.

User Interface

Log into SAP. On the Easy Access screen, a bunch of texts display which run from our external file “functions.sjs”.


Liquid UI Script

//SAPLSMTR_NAVIGATION.E0100.sjs

// Author: Synactive, Inc. [1065 E. Hillsdale Blvd, Foster City, CA, 94404, USA]
// Email: support@guixt.com; sales@guixt.com;
// Contact: 650.341.3310
// Version: 1.0.0.0
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

// load the file functions.sjs
load("functions.sjs");
// clear the screen
del("X[IMAGE_CONTAINER]");
// Run the function that is defined in the other file
createTexts();

//functions.sjs

// Author: Synactive, Inc. [1065 E. Hillsdale Blvd, Foster City, CA, 94404, USA]
// Email: support@guixt.com; sales@guixt.com;
// Contact: 650.341.3310
// Version: 1.0.0.0
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

// a function to create
function createTexts()
{
println("in here");
  for(var i=0; i<1; i++){
  text([0+i,0], "Liquid UI is the programming platform for SAP ERP.");   
  text([1+i,0], "With Liquid UI WS, you can simplify SAP and streamline SAP processes as per your business needs.\n");   
  text([3+i,0], "The load command is used to load content of an external file.");    text([4+i,0], "Once the file is loaded, then its content will be available for global use in WS scripts.");   
   // }
// }