Class PBEErrorCondition

Object
  |
  +--PBEAction
        |
        +--PBECondition
              |
              +--PBEErrorCondition

public class PBEErrorCondition
extends PBECondition


Description:
PBEErrorCondition returns $true if an error occured on the attribute or object this event is declared on.

PBEErrorCondition can be used in object and attribute events.


Event String Action Name:
error


Syntax:

error


Parameters
PBEErrorCondition does not support any parameters.


Examples:
 PBE:attributeEvent(
   "customer",
   "name",
   "on:new,save:required if not error unique");
 
This event causes the "unique" action to be called after the "required" action has ensured that an input value exists on the attribute "name" of object "customer".

This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 251).


Fields inherited from class PBEAction
iParameters, iType, name, procName
 
Constructor Summary
PBEErrorCondition()
           
 
Method Summary
 varchar parameters()
           
 
Methods inherited from class PBECondition
checkEvent, tracePerform
 
Methods inherited from class PBEAction
actionArguments, actionCall, actionParameters, attributeReference, callString, getObject, methodReference, nestedInput, objectReference, parameter, perform, performParameterCount, printPerform
 

Constructor Detail

PBEErrorCondition

public PBEErrorCondition()
Method Detail

parameters

public varchar parameters()
Overrides:
parameters in class PBEAction