cancel
Showing results for 
Search instead for 
Did you mean: 

Error in binding table to view context

aayush_dubey3
Explorer
0 Kudos

Hello All,

I have the following hierarcy of nodes/attributes in a view context:

->parentNode
           ->childNode
                     ->childNodeAttribute
           ->parentNodeAttribute

Here parentNodeAttribute & childNodeAttribute are of type String.

<b>In wdDoInit:</b> I have created 1-1 element each of both parentNode & childNode. Also i have set the parentNodeAttribute & childNodeAttribute with some text in wdDoInit method.

<b>In wdDoModify:</b> I need to bind childNode to the DataSource of table. I tried

mytable.bindDataSource(wdContext.getNodeInfo().getChild("parentNode.childNode"));

<b>I get the following error:</b>

<i>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: DataSource attribute of table not valid. [Table Table in view class com.sap.tc.webdynpro.progmodel.generation.DelegatingView]</i>

<b>Q0. Sol to this problem.</b>

<b>Q1. Are there any constraints in the type of node for binding ?</b>

Regards,

Aayush

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aayush,

Try

mytable.bindDataSource("parentNode.childNode");

Regards, Anilkumar

aayush_dubey3
Explorer
0 Kudos

Hello Anilkumar,

It worked. Very prompt reply. :-).

Thanks,

Aayush

Answers (0)