OpenWGA 7.10 - TMLScript reference

TMLForm "tmlform"
Method :

storeInPortlet([portlet])

On object TMLForm "tmlform"
Usage Stores the form data into a portlet configuration
Description This method transfers all fields from the WebTML form to items of the portlet configuration and saves the configuration.

This call implicitly triggers the form validation. If validation fails the save is canceled and this method returns false. If saving failed because of some other cause this method throws an error.
Parameters

portlet (TMLPortlet optional):

A portlet whose configuration receives the form fields. Omit to use the current WebTML portlet.

Return value true if validation succeeded, false otherwise (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent