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

Smart forms query

Former Member
0 Likes
438

Hi all,

I didn't found any difference between template and a table in smart form. Theoretically it says that template is static layout and where as a table is dynamic one.

But what i found is both are same. like below.

in template and tables i have declare text nodes and i have to define variables what i need in the output.

In the template and table we are defining the structure of the output.

Then what is the difference between the template and a table. In what sense template and table differs.

Can any one help me in this.

Regards,

Lisa.

Can any one help me.

2 REPLIES 2
Read only

Former Member
0 Likes
417

Hi Lisa,

For TEMPLATE:

The layout of a template is static, which means that you determine it before the Smart Form is executed.

TAMPLATE Lines will be displyed Based on Line height and no.of lines diefined in a templete.

<u>Example :</u>

IF you define a <u>template with 5 lines</u> and templete <u>prints 5 lines only</u>.

IF the <u>amount of data varries</u> but template prints only 5 lines and it <u>will not accomadate dynamically</u>.

IF Template defined in a window and window has a height of 3 lines and you have define template of 5 lines then you will get an error as template not fitting in the window.

TABLE:

The height of a table depends on the number of table lines and on the height of all table lines included in the output. The height of each table line depends on the highest cell, which again depends on the contents to be displayed in this cell. When filling table cells with contents, <u>nothing is truncated</u>, instead, the cell <u>height is increased</u>.

The <u>height</u> of a table depends of the amount of data to be displayed or printed in a table.

TABLE Lines will be displyed Based on Line height and depends of the amount of data .

Example :

IF you define a table with 3 table lines. But the data <u>exceeds more than one page</u> then table <u>dynamically</u> extended to next page.

IF Table defined in a window and window has a height of 30 lines and data exceeds (more than 30 lines)then table <u>dynamically</u> extended to next page.

Regards,

Lanka

Read only

Former Member
0 Likes
417

Hi Lisa,

<b> Template:</b>

Use node type Template to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program. For this reason, a template is also called a static table.

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

<b>Tables:</b>

In forms of business procedures you usually want to list details such as open items of an invoice. You can use a Smart Form to display this data in a table. You can design the layout of the table independent of the number of lines it will contain. The size of the table depends on how much data the application program passes to the form at runtime (unlike with templates, where you specify the number of columns and lines explicitly). The table can cover one or more pages, depending on the number of lines. This is why you display tables in the main window.