Global Events And Subs

Included since WorkWithPlus 14.
Release Note:Global Event Blocks

GlobalEventsAndSubsImg001

Global Events And Subs node has the following properties:

Category

Property

 
General Properties Block Name GlobalEventsSubsImg003
Include
Behavior if Block is not present on instance
Type
Event/Sub Name
Include when att matches: Is Nullable
Is Foreign Key
Is Primary Key
Is Inferred
Is Formula
Is First Level
Is Visible
Regular Expression
Code Code

Position

Global Event Block applies to: Default for Transaction and Web Panel templates
Transaction templates
List templates
Prompt templates
View templates
View Tabular Tab templates
View Grid Tab templates
Association Selection templates
Association templates
Web Panel generic templates
Wizard templates
Wizard Step templates

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

General Properties

Block Name

Name of Event/Sub Block

Include

If the code is included only once per object, or if it is included for each attribute.

We have two options:

  • Once
  • Once per matching attribute

Behavior if Block is not present on instance

Include or not include the Events & Subs node in the instance if it is not present

We have two options:

  • Include
  • Do not include

Illustrative image, it does not necessarily have to be in Default List, it is for all objects where Event Blocks or Subs can be added.

GlobalEventSubsBlocksImg001

Type

Here we indicate the type of block that will be created or updated, if it is Event or Sub.

We have two options:

  • Event
  • Sub

Event/Sub Name

Indicates the name of the Event or Sub, if the name matches an existing one, it will add the block inside, if not, it will create it.

We have two options by default:

  • Start
  • Refresh

 

Include when att matches(visible when property 'Include = Once per matching attribute'):

Is Nullable

True or False if needs match with a nullable attribute.

 

Is Foreign Key

True or False if needs match with a Foreign Key attribute.

 

Is Primary Key

True or False if needs match with a Primary Key attribute.

 

Is Inferred

True or False if needs match with a Inferred attribute.

 

Is Formula

True or False if needs match with a Formula attribute.

 

Is First Level

True or False if needs match with a First Level attribute.
 

Is Visible

True or False if needs match with a Visible attribute.
 

Regular Expression

Regular expression that needs be fulfilled.

 

 

Code

Code

Code that will be included in the objects.

The following tags can be included:

  • Only in objects based on transactions
    • <TRN_NAME>
    • <TRN_ DESCRIPTION>
    • <ATT_NAME >
    • <ATT_ DESCRIPTION>
    • <PK_LIST>
    • <NULLVALUE_PK_LIST>
    • <PK_VAR_LIST>
  • Only in transaction objects
    • <FIRST_EDITABLE_ATTRIBUTE>
    • <FIRST_EDITABLE_ATTRIBUTE_NOT_PK>

Position

Position within the Event or Sub.

We have two options:

  • Top
  • Bottom

 

 

Global Event Block applies to:

 

Default for Transaction and Web Panel templates

Set the default value for the properties below.

There are two possible values:

  • True
  • False

 

Example:

If 'Transaction templates' has <default> as value, it will take the value set in 'Default for Transaction and Web Panel templates'.

Available values: