You are on page 1of 7

Draw vertical lines to fill the entire main window in SmartForm

By Jayshree Santosh Mahajan, Cognizant Technology Solutions Introduction: Recently I got a requirement of smart form and in which I had to draw the vertical lines till the end of the main window, even though there are few records. I tried searching the solution on internet but could not land to a suitable webpage, so thought to share the solution. Scenario: Say, the table in the main window is displaying records like,

And we want to display the same records in the following format,

Here are the steps to achieve our goal: 1. Create the line type with the intended number of columns. In this example, I have created the line type with 7 columns (%LTYPE1). They would serve as headers. 2. Create the exactly same line type for the data display. Here I have created %LTYPE2.

3. For line type %LTYPE1 select the below frame

4. For the line type %LTYPE2 select below frame

Note: It will remove the horizontal lines as well. If you want to keep the horizontal lines then keep the lower line and remove only left, right and upper line by selecting the line type in the table painter. 5. It would look like

Click here to continue...

Draw vertical lines to fill the entire main window in SmartForm


...Previous

6. Now create the table line (%ROW1) for header using %LTYPE1 and create the table line (%ROW2) for data display using line %LTYPE2.

7. Now to fit the vertical lines till the end of the main window a. Create a separate window (NEW_WINDOW) before the main window with the same position and size specification of the main window like left margin, upper margin, width and height.

Main window position and size would look like

New window position and size would look like:

b. Create a new template(NEW_TEMPLATE) with the similar specifications of the line type %LTYPE1 under NEW_WINDOW as below.

Note : The width and height of the template will be the same as the Main Window. 8. Execute the form and the output will be :

You might also like