Class PBESelectedCondition

Object
  |
  +--PBEAction
        |
        +--PBECondition
              |
              +--PBESelectedCondition

public class PBESelectedCondition
extends PBECondition


Description:
PBESelectedCondition returns $true if the specified row is the selected row of the object this event is declared on.

PBESelectedCondition can be used in object and attribute events.


Event String Action Name:
selected


Syntax:

selected( position )


Parameters
position - Position can either be "first", "last" or an absolute row number.


Examples:
 PBE:attributeEvent(
   "customers",
   "name",
   "after:find:fetch(first) if selected(0) set('This is the empty-record!', status)");
 
This event causes the first record after activation of the "find" method on object "customers" to be fetched. If the search did not find any records, the empty-record (index 0) would still be selected after fetch(first) and thus the attribute "status" would be set to "This is the empty-record!" to provide feedback to the user.


Fields inherited from class PBEAction
iParameters, iType, name, procName
 
Constructor Summary
PBESelectedCondition(varchar name)
           
 
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

PBESelectedCondition

public PBESelectedCondition(varchar name)
Method Detail

parameters

public varchar parameters()
Overrides:
parameters in class PBEAction