Uses of Class
PBEAction

Uses of PBEAction in
 

Subclasses of PBEAction in
 class PBEAttributeAction
           
 class PBEAttributeCondition
           
 class PBECondition
           
 class PBEConvertFilter
          This filter converts to a give type.
 class PBEDisableAction
           
 class PBEDoAction
          Description: PBEDoAction causes the specified method to be executed. PBEDoAction can be used in object and attribute events. Event String Action Name: do Syntax: do( method ) Parameters method - name of the method to be executed. Examples: PBE:objectEvent( "country", "after:init:enable(find) do(find)"); This event enables the "find" method and calls it after the object "country" has been initialized. This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 257).
 class PBEEmbedFilter
          This filter places the output within a particular HTML context.
 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 PBEEnableAction
          Description: PBEEnableAction enables the specified method. PBEEnableAction can be used in object and attribute events. Event String Action Name: enable Syntax: enable( method ) Parameters method - name of the method to be enabled. Examples: PBE:objectEvent( "country", "after:init:enable(find)"); This event enables the "find" method after the object "country" has been initialized. This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 257).
 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 PBEExecAction
          Description: PBEExecAction executes a string with PrimeBaseTalk commands. PBEExecAction can be used in object and attribute events. Event String Action Name: exec Syntax: exec( exec_string ) Parameters exec_string - This is a string containing a valid sequence of PrimeBaseTalk commands. Examples: PBE:objectEvent( "customer", "on:nextpage:exec(""PBE:objects['customer']:setSelectedRow(PBE:objects['customer']:getSelectedRow()+10);"")"); This event causes the execution of the specified string ("PBE:objects['customer']:setSelectedRow(PBE:objects['customer']:getSelectedRow()+10);") before activation of the method "nextpage" of object "customer". This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 249).
 class PBEFetchAction
          Description: PBEFetchAction selects the specified row of the object (or whose attribute) this event is declared on. PBEFetchAction can be used in object and attribute events. Event String Action Name: fetch Syntax: fetch( position ) Parameters position - Position can either be "first", "last" or an absolute row number. Examples: PBE:objectEvent( "invoice", "after:find:fetch(first)"); This event causes the the first record of object "invoice" to be fetched after activation of the "find" method. This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 267).
 class PBEFilter
           
 class PBEFormatFilter
          Description: PBEFormatFilter can be used to declare the input and output formats for values of common datatypes, such as date, time, timestamp, etc. For output a single format definition can be declared and for input one or more format definitions can be declared, according to which data conversion will take place. For example it is possible to allow various input formats for a single attribute, which can help making applications more flexible and as such more userfriendly. Event String Action Name: format Syntax: format( type, format_definition ) format( type, format_definition | format_definition ) format( type, format_definition | format_definition | ... ) Parameters type - specifies the type of input expected or the type data should be converted to before being output. Allowed values for type include date, datetime, decimal, float, money, time, timestamp. format_definition - one or more format definitions.
 class PBEGotoAction
          Description: PBEGotoAction redirects the browser to a different page. PBEGotoAction can be used in object and attribute events. Event String Action Name: goto Syntax: goto( target_page ) Parameters target_page - The page to be redirected to. Examples: PBE:attributeEvent( "customer", "after:find:goto(custlist.lml)"); This event causes the browser to be redirected to the page "custlist.lml" after activation of the "find" method on object "customer". This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 248).
 class PBEIgnoreAction
          Description: PBEIgnoreAction causes input for the attribute to be ignored. PBEIgnoreAction can be used in object and attribute events.
 class PBEMapFilter
          This action maps an internal to external representation.
 class PBEMatchAction
           
 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 PBERangeAction
          Description: PBERangeAction sets a range of valid values on an attribute. PBERangeAction can be used in attribute events. Event String Action Name: range Syntax: range( from, to ) Parameters from - Start of range. to - End of range. Examples: PBE:attributeEvent( "customer", "discount", "after:input:range(0.0,100.0)"); In this example an input value range from 0.0 to 100.0 is declared for the attribute "discount" of object "customer". This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 252).
 class PBERequiredAction
          Description: PBERequiredAction declares an attribute as required. PBERequiredAction can be used in attribute events. Event String Action Name: required Syntax: required Parameters PBERequiredAction does not support any parameters. Examples: PBE:attributeEvent( "product", "name", "on:new,save:required"); In this example the attribute "name" of object "products" is declared required on activation of the methods "new" and "save". This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 264).
 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 PBESetAction
          Description: PBESetAction sets an attribute to a value. PBESetAction can be used in object and attribute events.
 class PBESetErrorAction
          Description: PBESetErrorAction sets the status (in case of an attribute) or error (in case of an object) to a specific value.
 class PBESetMaxAction
          Description: PBESetMaxAction looks up the highest current value of this attribute in all rows of this object.
 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.
 class PBETrigger
           
 class PBEUniqueAction
          Description: PBEUniqueAction declares an attribute as unique.
 class PBEUseAction
          Description: PBEUseAction simulates input into an attribute, thus causing the attribute to be used in database related actions. PBEUseAction can be used in object and attribute events.
 

Fields in declared as PBEAction
static PBEAction[] PBEApplication.actions