Author Topic: Set List Screen Checkbox  (Read 6765 times)

Benjamin Dasari

  • GuiXT Forum
  • Newbie
  • *
  • Posts: 96
    • View Profile
Set List Screen Checkbox
« on: October 13, 2016, 12:09:01 PM »
Purpose:
Select the checkbox on a list screen.

NOTE - Available from WS Version 1.2.296.0 and Liquid UI Server Version 3.5.524.0 onwards!

Liquid UI Code:

// SAPLSMTR_NAVIGATION.E0100.sjs
pushbutton([TOOLBAR], "NAVIGATE TO LIST SCREEN", "/nLB13", {"process":lb13navigate});      

function lb13navigate(){
   onscreen 'SAPML02B.0204'
      set('F[Warehouse Number]','001');
      set('F[Requirement Number]','F');
      set('C[Completed]','X');
      enter();
}   

// RLLB1300.E0120.sjs
pushbutton([TOOLBAR], "SelectListCheckBox", '?', {"process":selectListCheckBox});      
pushbutton([TOOLBAR], "DeSelectListCheckBox", '?', {"process":deselectListCheckBox});      

// Function to check the list screen checkbox
function selectListCheckBox(){
   onscreen 'RLLB1300.0120'
      set('#[5,1]','X');         
      enter('?');
}

// Function to uncheck the list screen checkbox
function deselectListCheckBox(){
   onscreen 'RLLB1300.0120'
      set('#[5,1]',' ');         
      enter('?');
}


See attachments for code samples!
« Last Edit: August 07, 2017, 02:53:27 PM by Benjamin Dasari »