Liquid UI - WS Reference Library

Assign values to Liquid UI table


Prerequisites


Purpose

This example illustrates how to assign values to a Liquid UI column when the column is being used by a Liquid UI table. This differs from when the Liquid UI column is being used in an SAP table. That scenario is explained in the Liquid UI Column for SAP Table.


User Interface

Log in to SAP. On the Easy Access Screen, Liquid UI tables with Liquid UI columns are displayed.



Liquid UI Script

//SAPLSMTR_NAVIGATION.E0100.sjs

clearscreen();
name = ["Chirag", "Rajesh", "Ben"];
age = [24, 31, 30];

table([0,0], [10,25], {"name":"z_table", "title":"LiquidUI Table", "rows":name.length});
column("Name", {"name":"z_column1", "size":10});
column("Age", {"name":"z_column2", "size":5});

for(x=0;x<name.length;x++){
    z_table.z_column1[x] = name[x];
    z_table.z_column2[x] = age[x];
}

Was this information helpful? Send Feedback