Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to read the xml response from tRRestClient2 and
here is my code from tJavaRow_2
java.util.List<String> list2 = java.util.ArrayList<String>)globalMap.get("list");
java.util.Collections.sort(list2);
System.out.println("#1 iterator");
String lastElement= new String();
java.util.Iterator<String> iterator = list2.iterator();
while (iterator.hasNext()) {
System.out.println(iterator.next());
}
Here is the code in tJavaFlex_1
===================
start code
-------------
java.util.List<String> mylist = java.util.ArrayList<String>)globalMap.get("list");;
System.out.println("Start");
main code
------------
mylist.add(row5.UserID);
End code
------------
globalMap.put("list",mylist);
here is the output
========================
--------------------------------------
Start
#1 iterator
235384
Start
#1 iterator
235384
246456
Start
#1 iterator
234551
235384
246456
...........
I want to get hold of just the arrayList in my tJavaRow and do further processing of the data.
How can I achieve that? I just want my arrayList with all my userIDs and then do further data processing on it.
Please advise.