on 12-27-2006 2:04 PM
Hi All,
I am facing a typical problem... Need your valuable inputs..
I have two segments E1TXTP9, E1TXTP8 in the source which will be repeated n times...
And Target i have two structure I9INPT00, I9INPT00(this is duplicate subtree)
E1TXTP9-->TDLINE is mapped to first I9INPT00
E1TXTP8 -->TDLINE is mapped to second I9INPT00
The problem is in both I9INPT00 i have one counter field PIINBR...
I am getting the output like this if i give counter function to the field PIINBR to both I9INPT00
First I9INPT00 -->PIINBR
1
2
3
4
second I9INPT00 --> PIINBR
<b>1</b>
But i should get the out put like this
First I9INPT00 -->PIINBR
1
2
3
4
second I9INPT00 --> PIINBR
<b>5</b>
I have tried using user defined functions using GlobalVariable but i am not able to set the second I9INPT00 value as 5...
Please help me..
Thanks and Regards,
sridhar
Hi,
maybe you can try this:
1. create a UDF to which you will connect
E1TXTP9-->TDLINE
2. inside this function count how many E1TXTP9-->TDLINE
are there and start the counter from this number +1
3. and connect this UDF to second I9INPT00 ?
do you ge the IDEA ?
BTW make sure the UDF is type = <b>queue</b>
(to store all E1TXTP9-->TDLINE occucancies)
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
Thanks for your suggestion, the problem is solved, Your weblog GlobalContainer has helped us to solve the porblem,
I have used set counter for both I9INPT00 segments and then getcounter UDF for Second I9INPT00...
And now its working fine...
Of course i havent used the Queue option as mentioned by You, I have just used a value arguement for get counter UDF and Context for Set counter and its working fine...
Thanks a lot...
Regards,
sridhar reddy
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.