on 06-25-2007 8:58 AM
Hi,
We have an output structure of the form-
<Record> occurence 1-n
<MSGFN>..</MSGFN> occurence 1-1
<MTART>..</MTART> occurence 1-1
<VOLUM>..</VOLUM> occurence 1-1
</Record>
I have written a UDF(queue) to populate the Record field. In this UDF I want to populate an ArrayList (ArrayList as initial size is unknown) with the output queue of Record which I need to reference in other another UDF(queue) for populating the fields under Record.
When I tried this by declaring an ArrayList under Global Variables and then trying to use that ArrayList in the UDFs for populating the fields, it was unable to do so.
Can anyone help out with this?
Hi;
This is all abt Global Variables
<b>Global Variables Declaration</b>
ArrayList arrVI;
int counter =0;
<b>Initialization Section</b>
arrVI= new ArrayList();
<b>assignment</b>
arrVI.add(sVI[iLoopCounter]);
counter++;
<b>Calling Back</b>
for (int i =0;i<counter;i++)
{
result.addValue(arrVI.get(i)+"");
}
Mudit
Award points if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>When I tried this by declaring an ArrayList under Global Variables and then trying to use that ArrayList in the UDFs for populating the fields, it was unable to do so.
but this is exactly how you do it
Regads,
michal
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.