OpenWGA 7.11 - TMLScript reference

Design
Method :

callAction([context], actionID, [param1, .... param5])

On object Design
Usage Calls a WebTML action
Description

This is a variant of  WGA.callAction() which is able to call actions that are defined in or for the current design. Otherwise it works just like its pendant on the WGA object.

Calling "WGA.design().callAction()" is equivalent to "WGA.callAction()".

Parameters context (TMLContext, optional):
A context in which the action is to be executed. Omit this to have the action execute under the same main context as the calling script.

actionID (String):
ID of the action to call. This may be the ID of a <tml:action> tag or the name of a TMLScript module. If you want to call an action that is defined in a different applications design you may prefix the ID with the database key of this application plus a slash. So to call an action "actions:doit" from application "myapp", use "myapp/actions:doit" as ID parameter.

param1, ...param5 (Optional)
Parameters for the action
Return value Return value of the action if it finishes with a "return" statement
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent