Class PBESetErrorAction

Object
  |
  +--PBEAction
        |
        +--PBESetErrorAction

public class PBESetErrorAction
extends PBEAction


Description:
PBESetErrorAction sets the status (in case of an attribute) or error (in case of an object) to a specific value. PBESetErrorAction can be used in object and attribute events.


Event String Action Name:
seterror


Syntax:

seterror( value )

seterror( value, destination )


Parameters
value - Specifies the value to be set.

destination - Specifies the destination attribute or object whose error or status should be set.


Examples:
 PBE:attributeEvent(
   "customer",
   "name",
   "on:new,save:required if error seterror('You must provide a customer name!')");
 
In this example if no value is given for attribute "name" upon activation of the methods "new" or "save", the error message provided by the "required" action is overwritten with a custom error message.


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

Constructor Detail

PBESetErrorAction

public PBESetErrorAction()
Method Detail

parameters

public varchar parameters()
Overrides:
parameters in class PBEAction