WebForm

WebFormIcon Description

The WebForm node in a Web Panel created using K2BWebPanelDesigner is a very special node, as it serves as root for all other nodes belonging to the definition of the web panel. This node contains properties that affect the generation of the Web Panel as a whole.

Runtime appearance

The following example shows how the Title of the web form is generated according to the corresponding property value.

WebFormRuntime
Title generated

Properties

Category Name Value

General
Title The string to be used as the web panel's title
Web Form Generator Determines the generator used when creating the Web Form of the Web Panel. This property can be used to enable or disable the Responsive Web Design generator for an individual panel.
Layout Object Contains the Layout Object used when generating the Web Form for this Web Panel. See K2BWebPanelDesigner HTML Editor Layout Object.
Responsive Layout Object

Contains the Responsive Layout Object used when generating the Web Form for this Web Panel when using the "Responsive" web form generator. See K2BWebPanelDesigner Abstract Layout Editor Layout Object.

Set Master Page If set to true, the web panel's Master Page will be updated when it is saved to match the master page set in the (Responsive) Layout Object. This property's default value is loaded from the Set Master Page property in web panel designer settings.
Error Viewer Need Error View Determines if the web panel should contain an error viewer or not
Security Entity Name The name of the entity which will be used to check authorization when entering the web panel. See K2BTools Security Model
Transaction Name The name of the transaction which will be used to check authorization when entering the web panel. See K2BTools Security Model
Standard Activity Type If applicable, the activity type which will be used to check authorization when entering the web panel (standard activity types only). See K2BTools Security Model
User Activity If applicable, the activity type which will be used to check authorization when entering the web panel (user activity types only). See K2BTools Security Model

User subroutines associated to this node

Name Moment of execution Detailed description and possible uses
U_OpenPage On the first page load

This subroutine is called when the web panel's start event executes, only if the HTTP method being invoked is "GET". This tipically ocurrs only the first time the user enters a particular web panel.

Possible uses for this subroutine are:

  • Initialization code. For example, initializing variables or controls in the web form.
U_StartPage Every page load

This subroutine is called when the web panel's start event executes. This includes the moment in which the user enters the web panel, and all page loads after that

Possible uses:

  • Code which should be executed whenever a full page load is performed.
U_RefreshPage Every page postback

This subroutine is called every time the web panel's refresh event executes.

Possible uses:

  • Calculations that should be changed every time the user performs an action on the Web Panel.
  • For example, if the Web Panel being programmed is a shopping cart, the total amount of the items being bought can be set here.

Child nodes

ActionsIcon Actions   GroupIcon Group   ColumnsIcon Columns
TabsIcon Tabs   LineSeparatorIcon LineSeparator   AttributesIcon Attributes node
WebComponentIcon WebComponent   EmbeddedPageIcon EmbeddedPage   GridIcon Grid node
FreeStyleGridIcon FreeStyleGrid   MultipleSelectionIcon Multiple Selection   UserRegionIcon UserRegion
QueryViewerNode QueryViewer   TextblockIcon Textblock   ImageNode Image