Web Panels Templates

The purpose of the Web Panel templates are detailed in the following link: Generation of Web Panels

WebPanelTemplateImg01

The properties of WebPanel Template node are:

Category Property  
General Properties Master Page WebPanelTemplateImg02
Form Theme Class
Advanced Security Security Functionality Key
Theme Theme
Generation Options Web User Experience
Base Web Form

General Properties:

Master Page:

Specify the master page that will be applied to the web panels based on this template. The values of this property are: <do not update>, <none> and the Master Pages existent in the application. The value <do not update> will not overwrite the value of the property 'Master Page' that the GeneXus object contains.

Form Theme Class:

Specify the theme class of the form to apply to the web panels based on this template.

Properties Of Category Advanced Security:

Security Functionality Key:

Specifies the functionality key to apply to the web panel based on this template. For more information click in Advanced Security .

Properties Of Category Theme:

Theme:

Specify the theme that will be applied to the web panels based on this template.

The possible values for this property are <default>, <use model default>, <do not update> and the names of all the Themes existent in the application.

  • <do not update>  will not overwrite the value of the property Theme that the GeneXus object contains
  • <use model default>  will take its value from the property 'Theme' of the environment.
  • <default> will take its value from property Theme of Theme node within WorkWithPlus Settings.

Properties Of Category Generation Options:

Web User Experience:

Specifies the the web user experience that will be applied to the web panels based on this template. The options for this property are 'Use model property', 'Smooth' or 'Previous versions compatible'. When the property has the value 'Use model property', it will take its real value from the property 'Web User Experience' of the actual version of the KB.

Base Web Form:

Specifies whether the base of the Web Form that of the web panels based on this template will be HTML or an Abstract Layout. Then, depending on the type of the tables inside the form, the Form may contain some HTML controls or Layout controls. The options of this property are: 'Use model property', 'Abstract layout' or 'HTML'. The value 'Use model property' will take its real value from the property 'Default Web Form Editor' of the actual version of the KB.


This node will contain all the web panels templates from which web panel's instances will be created. User can add, modify and delete templates. Template node contains three main children:

Table:

Represents the main table that will be displayed in form and will contain all controls. This table supports the following children:  

  • Error Viewer: has the same purpose and meaning of Error Viewer node in Transaction Instance's Structure: Error Viewer  
  • Variable: has the same purpose and meaning of Variable node in Transaction Instance's Structure: Variable < 
  • TextBlock: has the same purpose and meaning of Text Block node in Transaction Instance's Structure: Text Block < 
  • Attributes & Variables
  • User Action: has the same purpose and meaning of User Action node in Transaction Instance's Structure: User Action < 
  • User Table: has the same purpose and meaning of User Table node in Transaction Instance's Structure: User Table < 
  • Table: has the same purpose and meaning of User Table node in Transaction Instance's Structure: User Table <  
  • Grid
  • Tabs
  • Free Style Grid

Most nodes (all of them with the exception of Attributes & Variables Node) are exactly the same to the ones presented in web panel's pattern instances (has the same meaning and properties of it), so the link to it will show you those properties. Attributes & Variables Node defines some properties that will be set by default to all attributes and variables which user are adds in the same child of it. In the example above, all attributes and variables added in table 'tableData' will take its properties from 'Attributes & Variables' node that is inside it. These properties are: Theme class, Description Theme Class, and properties from Location in father table - description. All of them are explained in Attribute Node of web panel's pattern instances, if you want to read information about it follow this link: Attribute

Events and Subs

Represents code blocks that will be inserted in all objects based on the template. This can be added in Web Panel templates and also in all the objects within a transaction template.

Variables (Not included in Web form)

The purpose of this node is to define the variables that are used in some block codes, but they are not on screen (they are not inserted in instance's tree), so that WorkWithPlus defines it and you don't have to define them one by one for each object based on this template.

There is more information about the Event and Subs, and the Variables in the following link: Event Blocks and Variables.