GM
05-14-2006, 04:16 PM
Hello,
I have a method that remotely calls a java method which returns a collection of hibernate objects. How can I pick a couple of fields from this collection and throw them into a list or a combo box without having to loop the collection? Also,
mscYear.addItem(res[i].getSchoolYear(),i); is throwing an error since I cannot directly call a java method like that.
Thanks
GM.
<remotecall name="populateMSCYearComboBox" funcname="getYearList" remotecontext="$once{canvas.eventMan}">
<method event="ondata" args="res">
Debug.write("return value:", res);
for (i = 0 ; i < res.length ; i++)
{ Debug.write("return type:",typeof(res));
mscYear.addItem(res[i].getSchoolYear(),i);
}
</method>
</remotecall>
I have a method that remotely calls a java method which returns a collection of hibernate objects. How can I pick a couple of fields from this collection and throw them into a list or a combo box without having to loop the collection? Also,
mscYear.addItem(res[i].getSchoolYear(),i); is throwing an error since I cannot directly call a java method like that.
Thanks
GM.
<remotecall name="populateMSCYearComboBox" funcname="getYearList" remotecontext="$once{canvas.eventMan}">
<method event="ondata" args="res">
Debug.write("return value:", res);
for (i = 0 ; i < res.length ; i++)
{ Debug.write("return type:",typeof(res));
mscYear.addItem(res[i].getSchoolYear(),i);
}
</method>
</remotecall>