Skip to main content

Using Sequence{} in the mapper

Comments

1 comment

  • David Paras

    Hi Mike,

    You can append the sequence counter with data field in the data mapping by following below steps.

    1. Create a local variable at the Record level.

    varSequence = SEQUENCE{1 , 1}

    1. Apply the below rule in the Textual Rules of Target element.

    WHEN CONDITION{ string-length( $varSequence ) = 1 } VALUE=[ concat( $Input_XMLSchema/Records/Record/Element, ‘0’, $varSequence ) ] OTHERWISE VALUE=[concat( $Input_XMLSchema/Records/Record/Element, $varSequence ) ]

    Note : Instead of using ‘$Input_XMLSchema/Records/Record/Element’ Please select the source element accordingly.

    0

Post is closed for comments.