OpenWGA 7.11 - TMLScript reference

FormInfo
Property :

targetContextPath

On object FormInfo
Usage Determines the target context on which this WebTML form operates
Description

This field contains a context path addressing the target context of this form.

The usage of the forms target context is generally dependent on the form source that is used for a WebTML form. On form source "content" the document addressed by this path is the one where all field data is read from and also saved to by default. Other form sources may ignore the target context.

When creating a WebTML form simply by using the tag <tml:form> - without predefining the form - then the target context is automatically set to the context of the <tml:form> tag. The target context is kept accross multiple renderings of the same form. Changing the context of the <tml:form> tag on a subsequent rendering will no longer influence the target context.

Default value The path of the context of the <tml:form> tag that creates the form, otherwise null (String)
Writable True
Return value A context path (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events