cancel
Showing results for 
Search instead for 
Did you mean: 

Rfc data in my custom controller context but not in my view

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Have u instantiated the Table Node that is bound to the DataSource.

If not then u will not be able to see the data

With Wishes

Krishna kanth

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

I guess the last question is left to the Content administrator of this site

ravi

Former Member
0 Kudos

Hi all,

I solved the problem thanls to you.

I had forgotten to invalidate all output nodes. No I can display my results correctly.

Thanks for your help

Sylvain V.

P.S. Rewarding is ok today

Former Member
0 Kudos

Are you sure that you are binding to the same ContextNode in the customController ??

Regards, Anilkumar