UserRegion

UserRegionIcon Description

This type of node can be used in web panels designed using K2BWebPanelDesigner and transactions designed using K2BTrnForm Pattern to include custom form elements inside the WebForm part. This can be useful, for example, to include User Controls in the final interface.

Runtime appearance

There is no runtime appearance associated with this control, as the contents of the region are fully customizable by the developer when it edits the contents inside the region.

WARNING: All modifications done manually outside the "UserRegion" section in objects generated with K2BTools will be overwritten!

Abstract Layout editor usage

  1. Create a User Region node in the Designer Tree and save the Web Panel or Transaction.
  2. Locate the user region in the Web Form part. The user region is a table with controlName "I_UserRegion_UserRegion". To simplify the search for this table, K2BTools generates a textblock inside it when it is first created. The textblock is shown in the image below.
    UserRegionTextblock
    User region textblock placeholder

  3. Delete the textblock contained in the table, and place all the controls needed in that table.

HTML editor usage

Note: This information applies to K2BTools version 7.1 or higher.

To use this node, follow these steps:

  1. Create a User Region node in the Designer tree and save the Web Panel.
  2. The user region will be created and its Theme class will be "Section_UserRegionEdit" by default. This class was created to edit the contents of the user region easily by providing a red frame delimiting the user region.
    UserRegionRedBorder
    User region in "edit mode"

  3. Edit the contents of the user region in the Web Form (inside the red frame).
  4. Go back to the designer tree, and change the User Region's theme class to "Section" (or any other that you may prefer).
    UserRegionFinal
    User region in its final representation

If modifications are needed, change the theme class to "Section_UserRegionEdit" and follow these steps again.

Properties

Category Name Value
Appearance Class The theme class that should be used when rendering the user region in the web form. Note: Only available in Web Panels.