Uses of Class
PBECondition

Uses of PBECondition in
 

Subclasses of PBECondition in
 class PBEAttributeCondition
           
 class PBEEmptyCondition
          Description: PBEEmptyCondition returns $true when the value of an attribute is $null or an empty string, otherwise it returns $false. PBEEmptyCondition can be used in attribute events. Event String Action Name: empty Syntax: empty Parameters PBEEmptyCondition does not support any parameters. Examples: PBE:attributeEvent( "product", "name", "before:new,save:if empty set('Default Name!')")
 class PBEErrorCondition
          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).
 class PBEModErrCondition
           
 class PBEPageCondition
          Description: PBEPageCondition returns $true if the current page name is in the list of page names specified, otherwise it returns $false. PBEPageCondition can be used in object and attribute events. Event String Action Name: page Syntax: page( csv_page_name_list ) Parameters csv_page_name_list - A comma separated list of page names. Examples: PBE:objectEvent( "product", "after:new:if page('product.lml,productitem.lml,productfeedback.lml') goto(productadded.lml)"); This event causes the browser to be redirected to the page "productadded.lml" after a new record has been added to object "product" from one of the pages listed ("product.lml,productitem.lml,productfeedback.lml").
 class PBESelectedCondition
          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!'
 class PBETestCondition
          Description: PBETestCondition causes a boolean expression to be evaluated. PBETestCondition can be used in object and attribute events. Event String Action Name: test Syntax: test( bool_expr ) Parameters bool_expr - The value to be converted to and returned as boolean. Examples: PBE:objectEvent( "order", "numberOfItems", "after:new:if test(""PBE:objects['order']:attributes['numberOfItems']:getValue() > 10"") set(10)"); This event tests if the value in the attribute "numberOfItems" of the object "order" is greater than 10.