Setting values in tables

Assigning values to GuiXT table rows and columns.

You can use the table command to assign values to cells in a GuiXT table. We will demonstate this in the following examples. The syntax is as follows:

table_name.Col_name[row_index] = "xyz";

To set a value into a particular cell or set of cells, please do the following:

  1. Go to the 'SAPLSMTR_NAVIGATION.E0100.sjs' script file and enter the following code:

    proj.qty[4] = "xyz";
  2. We have now entered the value 'xyz' in row four of the 'qty' column as shown below:



  3. To assign values to all cells in a particular column, change the code as shown below:

    var l;
    for(l=0; l<10; l++)
    proj.qty[1] = 1;
  4. The table will now appear as shown below: