Class PBEUniqueAction

Object
  |
  +--PBEAction
        |
        +--PBEAttributeAction
              |
              +--PBEUniqueAction

public class PBEUniqueAction
extends PBEAttributeAction


Description:
PBEUniqueAction declares an attribute as unique. PBEUniqueAction can be used in attribute events.


Event String Action Name:
unique


Syntax:

unique


Parameters
PBEUniqueAction does not support any parameters.


Examples:
 PBE:attributeEvent(
   "customer",
   "name",
   "on:new,save:required if not error unique");
 
This event declares the attribute "name" of object "customer" as required on "new" and "save" method activations. If "name" is specified ("required if not error"), uniqueness is checked and the attribute's status is set to indicate the error in case the provided value does already exist.

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
PBEUniqueAction(varchar name)
           
 
Methods inherited from class PBEAction
actionArguments, actionCall, actionParameters, attributeReference, callString, checkEvent, getObject, methodReference, nestedInput, objectReference, parameter, parameters, perform, performParameterCount, printPerform, tracePerform
 

Constructor Detail

PBEUniqueAction

public PBEUniqueAction(varchar name)