on 05-25-2005 3:04 PM
Hi all,
I'm trying to develop a web dynpro accessing bapi.
I successfully execute the bapi and get the data in return. In debug mode, if I set a break point after the execute method of the custom controller, I can see my data under the JCO Record node.
My problem is that I do not succeed in displaying the result in my result view.
I create a context for this view, map it with the custom controller context, and I add a table in my view to display the result on which I use "create binding" to tell the table what to display.
Still, the table did not display anything (no error but no data !)
Does anyone can help me ?
Thanks
Sylvain V
Hi Sylvain,
You said you can execute BAPI successfully but it don't show results on view.
Did you invalidate your output nodes after executing bapi?
If no then invalidate all your output nodes like this:
wdcontext.nodeOutput.invalidate();
wdcontext.node<output node if any>.invalidate();
Then try once again.
Let me know the status.
regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Just Check ur Mapings and before that try to print reportSucces from Custom Controller itself where u r getting the data
If u r getting the data in Custom controller then the problem shuld be in your mapping other wise ur model binding is not proper
With Wishes
Krishna kanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What do you mean by "print reportSuccess" ?
I'm trying to call bapi_persdata_getlist, so I've created a model node called "persdata_input" in the custom controller and bind "Employeenumber" and "Ouput" from the model under it.
In my view, I've created a model node "personnaldatakey" that I bound to "ouput"->"personnaldatakey" in the custom controller context.
Regards,
Sylvain
Hi
check if your bindings are correct. Try printing out a message say after executing the model. For example after executing the model say
wdComponentAPI.getComponent().getMessageManager().reportSuccess("Size of the node is "+wdContext.node<ModelNode>.size());
That should let you know if you are getting the data in the View.
Go to table properties and check if there are no Cross marks. Sometimes there are chances that your binding would have gone. Just check that.
Wondering what else could have been missed out :). You seem to have done it correctly.
Anyway let me know if the above steps mentioned helped you.
regards
ravi
Hi all,
Thanks for your helful answers.
Unfortunately I no longer have access to the my dev today.
I will be able to modifiy it next week. If I remember right I only invalidate one output node and you may have found the problem.
I will test that as soon as possible and get back to you.
Anyway, I have a problem with this topic, I do not see the radio buttons allowing me to reward point for helpful answers. I only have the button "solved on my own" beside my first message. Is this a forum temporary bug ?
Regards,
Sylvain
Are you sure that you are binding to the same ContextNode in the customController ??
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.