OpenWGA 7.6 - TMLScript reference

List
Method :

set(idx, wert)

On object List
Usage Sets a value at an index position
Description This replaces the value that was at that index position before. All other index positions therefor remain intact.

An error is thrown If a position is specified that is not yet available in the list.
Parameters idx (Number):
Position at which to set the value

wert:
Value to set

Return value The value that was stored at the given index position before
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent