5.21.6.2.1 Changing Layouts in Templates

 



 

Changing the Default Layout

 

To change the default Layout, follow these steps once the template is loaded into the Layout draw area, as described in the topic Invoking Templates,

Illustration

 

The following image shows the template "ATM_Virtual_Connection.xml" being displayed in the Layout draw area, with the default layout set to "GridBagLayout".

 

 

Preview of the selected Layout

Setting Layout Properties

Resizing in Layout

 

Resizing is not allowed for all the layouts, i.e, only in some specific layouts, components are allowed to be resized. The following are the layouts in which the resizing is allowed :

Warning:

  • You should not add extra tab to the main tabbed pane.

  • You should not merge the form components, when the forms are in different stages.

  • The same merging rules apply for tree format.

  • In the same stage, if the form components are merged, then there should be no element between the two form tags.

<Stage label="First" >

<Form id="1" >

</Form>

<Form id="2" >

</Form>

</Stage>

 

In the above case, components present in Form "1" and Form "2" can be merged. But same is not possible, if there are any tags between Form "1" and Form"2".

  • You should not add any component outside the layout, when the forms are displayed in the tree format.

  • When layouts are set for templates, additional components should not be added using template filters. If added, those components are not considered in the layout being set.

 



Copyright © 2009 ZOHO Corp. All Rights Reserved.