on 08-04-2010 5:52 AM
I need your help!
I have a counter function and value of that needs to be passed to two elements of Node A and Sub Node B..
Ex: Mapping
Map Counter function to NodeA.Element1 and also to NodeB(subnode).Element2
Expected Result:
NodA.Element1 = 1
NodeB.Element2 =1
but I am getting the result as
NodA.Element1 = 1
NodeB.Element2 =2
I understand the reason.. since the counter function is called each time..
so my questions is how do I the expected result as mentioned--
NodA.Element1 = 1
NodeB.Element2 =1
remember the XML is multiple occurence(1.. unbounded for both the nodes)
Thanks-Gopal
for each node , you have to create seperate counters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I did not explain phrase it correctly..Technicallyh NodeA.Element1 value should be copied to NodeB.Element2..As long as I can generate counter to NodeA.Element1 and hold the value somewhere to copy to NodeB.Element2, that would be fine..
the above suggestion you guys made would not work as it will create two different set of sequences.. however Index suggestion might work differently but still I might go out of sequence if I have multiple detail record for each master record..
Here the expected output (concise)
Record 1 - NodeA.Element1 = 1
Record 2 -NodeB.Element2=1
Record3- NodeA.Element1 =2
Record4 - NodeB.Element2=2 -->two detail records
Record5 - NodeB.Element2=2 --> two detail records
please help
Hi,
Instead of count use index function and select the option to reset index after each context change..
this will suffice your requirement..
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can u please use the same mapping for NodeB.Element2 as u r doing for the NodA.Element1.
So that u will have 2 counters running simultaneously but have same value...
Babu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.