on 11-22-2007 4:34 AM
I call a Web Service get list, and I want to display inthe first view.
I add the code in WDInit() of the view controller, but can't load data.
wdContext.currentRequest_Test_getListElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
Thanks in advance.
Hi,
Instead of writing this code in the view controller's wdDoInit, write it in the component controller's wdDoInit. Map the context of the Component controller to the view context.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have worked out. I put these codes in
wdDoInit()
of the view!
Request_Test_getList fbi=new Request_Test_getList();
wdContext.nodeWebServiceList().bind(fbi);
try {
wdContext.currentWebServiceListElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shen,
move the same code to component controller. are u getting any exception??
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.