|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Object
|
+--PBEAction
|
+--PBESetErrorAction
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.
seterror
seterror( value )seterror( value, destination )
value - Specifies the value to be set.destination - Specifies the destination attribute or object whose error or status should be set.
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 |
public PBESetErrorAction()
| Method Detail |
public varchar parameters()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||