cancel
Showing results for 
Search instead for 
Did you mean: 

Binding table to data from model

Former Member
0 Kudos

Hi all

I have binded a table to data from webservice model.

when i activate the on lead select event on the table it works fine

if i renew the data in the model (by recalling the service) and then try to activate the on lead select event again it throws an exception before reaching the event handler

java.lang.NullPointerException

at com.sap.tc.webdynpro.progmodel.context.Nodes.getChildNode(Nodes.java:82)

at com.sap.tc.webdynpro.progmodel.context.Paths.getNodeFor(Paths.java:519)

at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateLeadSelection(AbstractAdapter.java:722)

if anyone has any idea

Thanks gilad

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Gilad,

Make sure that datasource node contains data after service recall. Seems like data is not loaded.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

I'm not sure i understand to what node you are referring but the table gets filled with the expected data

thanks

gilad

former_member182372
Active Contributor
0 Kudos

Hi Gilad,

1) initial load is ok and data is displayed correct in table

2) lead selection event action handler works as excpected

3) reload of data is ok and new data is displayed correct in table

4) by selecting of row (lead select event) you are getting exception.

Right?

Former Member
0 Kudos

yes

former_member182372
Active Contributor
0 Kudos

Did you change parameters mapping for table`s OnLeadSelect event?

Former Member
0 Kudos

I rewrote it and it works fine i probably had some kind of binding issue

thanks anyway