InterviewSolution
| 1. |
What Is The Difference Between Tables & Template Node? |
|
Answer» Template contains a fixed NUMBER of rows and columns, where the output is fixed where as a table can have variable number of rows. Templates are also preferred where there is a need of proper alignment. Templates are used to PRINT tables whose layout and rows are fixed and known before the application program RUNTIME. Example: Tax Forms Template is a static entity i.e. its dimensions cannot be changed at run time whereas Table is a dynamic entity i.e. its dimensions can be changed at run time. Hence, based on the data, it can last from one page to multiple pages. For line items display, normally table is used because one does not have prior information about the number of line items and no of pages. Table node has 3 components- HEADER, ITEM and FOOTER
Templates can be used to define the FOLLOWING:
Tables are used to print dynamic data which is not known before the application program runtime. Example: Material list Of Purchase orders. Tables node to be used only in main window and no such fixed height can be SET for table rows. Template contains a fixed number of rows and columns, where the output is fixed where as a table can have variable number of rows. Templates are also preferred where there is a need of proper alignment. Templates are used to print tables whose layout and rows are fixed and known before the application program runtime. Example: Tax Forms Template is a static entity i.e. its dimensions cannot be changed at run time whereas Table is a dynamic entity i.e. its dimensions can be changed at run time. Hence, based on the data, it can last from one page to multiple pages. For line items display, normally table is used because one does not have prior information about the number of line items and no of pages. Table node has 3 components- HEADER, ITEM and FOOTER Templates can be used to define the following: Tables are used to print dynamic data which is not known before the application program runtime. Example: Material list Of Purchase orders. Tables node to be used only in main window and no such fixed height can be set for table rows. |
|