Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms

Former Member
0 Likes
521

what is the use of Template?

Thanks in advance.....

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
393

Hi ,

Template can be used to display static content in a specific format.

Suppose you want to create columns in the Smartform then template can be used to divide the layout and use it.

You can also use loop under Template to display the data in the internal table.

Read only

Former Member
0 Likes
393

Hi,

Template is used to display data in tabular form. Use template when you you have fixed no of colums and rows. when you add text element to template, you need to mention row and column in output parameters where it will print the text.

In case there is no text for column or row, it will leave the space there.

Reagrds,

Gagan

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
393

Hi,

Template

Displays texts for table cells of a static table.

Displaying a static table

Use node type template to display a table whose layout and size is determined before the runtime of the print program.

To create a template define a table layout to determine the cell structure for each line. The cells are used to display the cell structure for each line. The cells are used to display the contents of the successor nodes of the template node.  This allows one to position text and a graphic side by side.

The template node is also used for label printing. To use a template one must do the following:

Ø      Define the table layout

Ø      Display the contents in the table cells

Define the table layout:

            The table layout is used to determine the following,

Ø      The number of lines and cells

Ø      The height of each cell

Ø      The width of each cell

Ø      The alignment of the table in the window

Ø      Whether and where to display separator lines or frames

Create a template node and maintain the attributes width, horizontal alignment and vertical alignment.

Use the table control on the template tab to define the layout of the lines. Each line of the template must have a definition.

Use the pattern box to select the desired table pattern.

Displaying contents in cells:

        The template node defines the table layout. The successor nodes of the template determine the data to be displayed in the table cells

.

Check the standard programs SF_EXAMPLE_01 and SF_EXAMPLE_02.You will get idea.

Kindly reward points by clicking the stars on the left side of the reply if it is useful.Otherwise,get back.