OpenWGA 7.0 - TMLScript reference

TMLContext "this"
Method :

removeVar(varname)

On object TMLContext "this"
Usage Removes a (normal) WebTML variable
Description Completely removes the WebTML variable for the given name from the WebTML page. After that the method this.isDefined() will return false for the name of the removed variable (if there is no other type of WebTML variable or item with the same name).


This method cannot be used to remove session or portlet variables.  For these use this.removeSessionVar() or the remove methods on TMLPortlet "this.portlet" respectively.

Parameters varname (String):
Name of the variable to remove
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events