cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem

Former Member
0 Kudos

Hi,

I have a problem in mapping. I have created 2 student nodes in source side, after test the mapping i am getting only one node. I am getting the total of all the students. But i want to get individual totals of each student how can i do mapping.

Thanks,

Ganesh

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

bold Source

<StudentData Gender="M">

<ID>101</ID>

<Name>RAMU</Name>

<MarksInSubject>

<SubjectID>S1</SubjectID>

<Marks>65</Marks>

</MarksInSubject>

<MarksInSubject>

<SubjectID>S2</SubjectID>

<Marks>75</Marks>

</MarksInSubject>

</StudentData>

<StudentData Gender="F">

<ID>102</ID>

<Name>RADHA</Name>

<MarksInSubject>

<SubjectID>S1</SubjectID>

<Marks>68</Marks>

</MarksInSubject>

<MarksInSubject>

<SubjectID>S2</SubjectID>

<Marks>81</Marks>

</MarksInSubject>

</StudentData>

bold Target

<StudentData Gender="M">

<ID>101</ID>

<Name>RAMU</Name>

<MarksInSubject>

<SubjectID>S1</SubjectID>

<Marks>65</Marks>

</MarksInSubject>

<MarksInSubject>

<SubjectID>S2</SubjectID>

<Marks>75</Marks>

</MarksInSubject>

<total>209</total>

</StudentData>

Note: It is giving the total of all the subjects and all the student as a single node. But i want the result should be like student with his all subjects name.

SudhirT
Active Contributor
0 Kudos

Hi ,

try like this and let us know

Source Field----->removeContext--->SplitByValue(ValueChange)----->Sum---->Target Field.

Thanks!

Former Member
0 Kudos

Hi Ganesh,

The solution for your problem is change the input context and use the "SUM" Standard Function. See:

Marks(context: StudentData)--->Sum-->total.

I hope It helps You.

Ivan

Edited by: Jose Iván Reyes Arteaga on Dec 10, 2008 4:08 PM

former_member193376
Active Contributor
0 Kudos

Hi

Please be a little more clear, or provide your source and target structure.

Thanks

Saiyog

prateek
Active Contributor
0 Kudos

after test the mapping i am getting only one node.

Make sure that the occurrence of the target node is unbounded.

Regards,

Prateek

Former Member
0 Kudos

Hi,

Could you post your source and target structures that you want to map?

Carlos