on 05-17-2005 10:34 AM
Hi,
I would like to Consume a Web Service through WD, The return type of the service is Vector and I would like to display result in Table so I have to bind this return type to Table UI.
I have tried to make a Web Service model and mapped it to Controller Context then to View Context but when I try to bind the Table UI to return type value attribute is enabled. I do not know how can I changed the return type so that I can bind it to TextView in Table cell editor.
Is there any one who can help me in this case?
Thanks
Regards
Yasir Noman
Hi yasir,
I agree with sowjanya that yo u will not be able to bind a java native element to a UI.so the best and fastest way I feel is to iterate a vector and get the value.Once more advatage of a java.util.vector is
it is dynamic in nature.so u will not have any storage problems.
Regards,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let us conside you are storing employee objects in a vector.
for(int i=0;i<Vector.size();i++)
{
Employee emp=(Employee) Vector.get(i);
IPrivateView.ITableNodeElement ele=wdContext.createTableNodeELement();
ele.set<<Attrib1>(emp.get<<Attrib1>>);
ele.set<<Attrib2>(emp.get<<Attrib2>>);
wdContext.nodeTableNode().addElement(ele);
}
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo Yasir
I think you can iterate over the vector and populate context node with data from vector. I don't know if that is the best solution (probably not) but that ought to work.
Regards Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.