Skip to Content
0
Aug 11, 2005 at 05:46 AM

Error in binding table to view context

18 Views

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