Posted: Tue Aug 24, 2004 7:41 am Post subject: Input Container array element
Apprentice
Joined: 30 May 2002 Posts: 43 Location: Buffalo, NY
I'm in the process of writing a Java app that needs to access the input container of a work item. The data container includes several array elements. Thru the Java API, how can I access these array elements and put them into an array of Strings?
There is no direct method to get array. You know array size as that is what u define in buildtime. Consider u have array name "TEST1" of size 20. Data Structure "TEST1" has 2 strings elements define namely "TEST2" and "TEST3".
U can use something like this.
You can retrieve ReadOnlyCOntainer from workItem.
for (int x = 0; x < 19; x++ ) {
try{
roc.getString("TEST1["+x+"].TEST2");
}catch(){}
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum