Table in smart form and header column name with colours:
Create a local type in the global definition
Declare internal tables and work area in the global data:
Initialise the internal table with some initial values:
Create a table under the main window:
In the table tab create a line type by right Clicking as shown below.
To colour the particular line type :
Click and select the line type and go to shading , below shading select the colour as you want.
After selecting the colour the particular line type will be on the colour which we have selected:
After creating the line type and the columns according to the requirement:
In this case there are 2 colums.
Here we create 2 line types:
1st line type is for header, that is for the column name.
2nd line type is for the column values which comes during the run time.
Now go to the Data tab:
And declare the internal table and work area.
Now go to header:
Right click and create a table line:
Now in the table line it will ask for line type: since its header we are choosing it as line type 1.
Since we have 2 columns which we have defined in the line type , 2 cells will be created. Under the line type.
Now go to the cell and right click on it and create a text for it:
After creating in general attributes tab, give the column name as shown below.
Similarly do it for cell 2 as well.
Then now lets go the Main area:
As we have done in the header lets create a table line and here we are giving as line type 2 for the data parts:
Since the line type 2 has 2 columns, 2 cells are created under.
IN the 2 cells right click on it and create text for it:
Since its main area, here we will be giving the work area values , which comes on the run time.
Similarly do the same for cell 2:
Here we are creating 2 line types in the table :
Because the line type 1 is used for header purpose , that is for displaying the column name in colour and its being used in the header part.
The second line type is used to display the internal table values and its being used in the main area part.
Now the output is: