Hi,
I am using LS2J and trying to return an Array or List of Java Objects back to my LotusScript Agent. I can return a single object ok, but am having trouble returning more than one. Does anyone have any idea how i would handle this in my lotusscript agent?
I have just put an example below of some simple test Java code…
public static PersonDetails getArray(String uid) throws Exception {
PersonDetails posts2 = new PersonDetails[2];
PersonDetails person1 = new PersonDetails(“test1”, “test1”, “test1”, “test1”, “test1”, “test1”, “test1”);
PersonDetails person2 = new PersonDetails(“test2”, “test2”, “test2”, “test2”, “test2”, “test2”, “test2”);
posts2[0] = person1;
posts2[1] = person2;
return posts2;
}
Any help would be much appreciated…thanks.
Mandip.