Service Studio 6.0 Help
ListInsert Action
The ListInsert action is a System Action that inserts a record in a specific position of a record list. The input record list is effectively modified but the current record of this list is not changed.
Input parameters
Animation Effect: the kind of animation for the added/removed record when refreshing a record list widget using Ajax.
Text Type. Optional.
The possible values are: None, Highlight or Fade.
The possible values are: None, Highlight or Fade. RecordList: the record list where the Record is inserted.
Record List Type. Mandatory.
Record: element that is inserted at a specific position of the Record List.
Record Type. Mandatory.
Position: Position where the Record is inserted. In Service Studio, position starts with zero. If Position is less than or equal to 0, the Record is inserted at the beginning. If Position is greater than the size of the Record List, Record is inserted at the end.
Integer Type. Mandatory.
Output parameters
None
Remarks
You cannot insert a Record into a Record List, inside a For Each loop for that Record List. The following runtime error is raised:
"Insert is not a valid operation inside a StartIteration/EndIteration block."
See Also
ListAppend Action | ListAppendAll Action | ListClear Action | ListDuplicate Function | ListRemove Action | About Record List Type | About Record Lists | Refresh Record List Widgets Using Ajax | Overview of System Actions and Functions