BCVariable

VariableIcon Description

Nodes of this type are used inside Attributes node controls. They can be used to place variables referencing a Business Component in the panel's form.

BCVariable nodes belonging to an Attributes node are assumed to belong to the same Business Component variable in the transaction. Because of this, the developer must specify the Transaction that should be used in the "Business Component" property located in the Attributes node. See the example below for more details.

TrnFormBCExample TrnFormBCExampleWebForm
Instance structure Transaction's Web Form

As you can see in the example, a variable is generated for the BC. The variable's name is "<BusinessComponentName>_BC".

Properties

Category Name Value
General Name (Id) Control name for this variable. This may be used to generate controls related with this variable.
Field Field (attribute) in the Business Component referenced by this variable. Must be present in the BC's first level.
Description Description text to be set to the variable.
Form Description Layout Position of the description relative to the control. The default value for this property is loaded from the "Descriptions Layout" property in this node's parent. Note: Only available in SD Panels.
Visible When set to false, the variable will be hidden inside the web form.
No Skip

When set to true, the attribute will be shown in the same line as the last one. See NoSkip property.

Important: This property existed until K2BTools 13.2. In K2BTools 14.0 it was replaced by the "Element Relative Position" property.

Element Relative Position

Allows to configure the position of the element relative to the previous element. The possible values are:

  • New row
  • Same cell
  • New cell

For more information read Element Relative Position property

Invite Message String that will be used as an invite message. Only available when using Responsive Web Design.
Tooltip Tooltip to be used when generating the variable control.
Left Text Text placed before the variable, after the description.
Right Text Text placed after the variable.
Contextual Help Value

A text that will appear alongside the variable to provide help to the user. Character values must be placed between quotes. This property's value must contain an expression. This allows the developer to concatenate attributes values (example: "Please insert value for " + &ProductDescription)

Example:

VariableContextHelpRT

Format

Format of the variable value.

  • Text
  • Html
  • RawHtml
  • TextWithMeaningfulSpaces

The format property allows you to render html code placed inside an variable.

Behaviour Date Picker Determines if a date picker should be associated to this variable's control.
Appearance Class Attribute's theme class.
Description Class Description's theme class.