on 08-25-2009 1:12 PM
Hi,
Consider the structure
MT
.....Person(1..unbounded)
............CI(0..unbounded)
....................AT(0..unbounded)
I need to extract CI[1].AT[1]'s value.
For Ex:
<CI>
..... <AT>1<AT>
......<AT>11<AT>
</CI>
<CI>
..... <AT>2<AT>
......<AT>22<AT>
</CI>
I need only the AT having 22(can be anything) value of 2 occurence of CI. How do we do it?
Thanks in advance,
Vishal
Try as shown here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Map like This..
AT---->UDF----->AT
While creating the UDF select Queue
UDF code is
for(int i=0;i<a.length;i++)
{
if(a<i>.equals(ResultList.CC))
{
result.addValue(a[i+2]);
}
}
I have tested this..Working fine...
Get back for any other issues..
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the Index function and compare if it is equal to 2 and pass the value of AT if the index equals 2
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.