SequencesManager.Restore
Syntax:
Parameters:
<PointInTime> (optional)
A point in time, for which sequences are restored.
If this parameter is not specified, the sequence is restored to its last document.
<Sequences> (optional)
A set of sequences that have to be restored. It is set by a table of values that consists of two columns. The first column should contain a value that identifies the sequence: string - a sequence name as specified in the designer, or metadata description object of the sequence. The second column should contain a set of sequence dimension value combinations, which should be restored in the specified sequence. This set is defined as a table of values which contains mapping dimension values in its columns. The column names should be the same as the names of the sequence dimensions. If the set of combinations is not specified, the entire sequence will be restored.
Description:
Availability:
Example:
SequencesTable = New ValueTable; SequencesTable.Columns.Add("SequenceName"); SequencesTable.Columns.Add("CombinationSet"); EmptyTable = New ValueTable; Str = SequencesTable.Add(); Str.SequenceName = "StockTaking"; Str.CombinationsSet = EmptyTable; Sequences.Restore(WorkingDate, SequencesTable); |