Skip to Content
author's profile photo Former Member
Former Member

How to change target structure order

Hi Guys,

I am having the problem for changing the target structure order,

I am dealing the fixed length files using the sender file adopter I am getting the order what ever I want. example below mention.

created the data type message type and every thing my own and also used sender file adopter with file content conversion.

Source

STRU1

STRU2

STRU3

STRU1

Where as I got the XSD from the vendor for the target and used external definition. When I am doing the message mapping I am getting different order.

I want the target as below mention

Target

STRU1

STRU2

STRU3

STRU1

But I am getting as :

Target

STRU1

STRU1

STRU2

STRU3.

Can you guys please help to get order what ever I want....

Thank

Babu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Mar 31, 2008 at 03:37 PM

    Hi,

    Use the record set sequence as ascending and use key field name and value

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2008 at 03:53 PM

    > I want the target as below mention

    > Target

    > STRU1

    > STRU2

    > STRU3

    > STRU1

    >

    > But I am getting as :

    > Target

    > STRU1

    > STRU1

    > STRU2

    > STRU3.

    Set the context to "Source" of your source field which you are mapping to "STRU1". Just right click on your source STRU1 field and change the context.

    Regards,

    Sarvesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sarvesh,

      Those are like STRU1, STRU2 STRU3 structures not fields, every structure has n number fileds.

      When I configure my sender file adopter I got the order what ever i need, but when I am doing message mapping structure level mapping like

      STRU1 -


      > STRU1

      STRU2 -


      > STRU2

      STRU3 -


      > STRU3

      Since STRU1 has 2 occurrences in source first and last.

      when I did above mapping the STRU1 is comming 2 times as a first, Which I do not want.

      I hope you understand ..

      can you please help me how to get order in target..

      Thanks

      Babu

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2008 at 04:05 PM

    HI,

    Plesae can you share the XSD file, as probably it will be helpful to analyse about the sequence of structure.

    Thanks

    Swarup

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.