cancel
Showing results for 
Search instead for 
Did you mean: 

Error with dynamic table

Former Member
0 Kudos

Hi, I'm creating some Attributes on my context:

IWDAttributeInfo a=wdContext.getNodeInfo().getChild("DataTable").addAttribute("XAxis","ddic:com.sap.dictionary.string");

for(int i = 0; i < (wdContext.nodeEt_Coordinates().size()-i1); i+)

{IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"java.lang.Boolean");}

Next, I "filling" them with some values:

for(int u = 0; u < wdContext.nodeEt_Coordinates().size(); u++)

{IWDNodeElement ne = wdContext.getChildNode("DataTable", 0).createElement();

ne.setAttributeValue("XAxis", wdContext.nodeEt_Coordinates().getEt_CoordinatesElementAt(u).getCoord_Short());

for(int i = 0; i < wdContext.nodeEt_Coordinates().size(); i++)

{ne.setAttributeValue("val"+Integer.toString(i), Boolean.FALSE);}

}

wdContext.getChildNode("DataTable", 0).addElement(ne);

}

Out of this Node DataTable I´creating a table.

I get an error message, when im checking two chekboxes from two different lines in the resulting table. The message is the following:

" com.sap.tc.webdynpro.progmodel.context.ContextException: DataAttributeInfo(MainView.DataTable.val2): does not have a simple type "

Can anyone help?

Message was edited by: Alexander Reinke

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Replace this line


{IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"java.lang.Boolean");}

with


{IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"ddic:com.sap.dictionary.boolean");}

or


{IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"java:java.lang.Boolean");}

Regards,

Satyajit.

Message was edited by: Satyajit Chakraborty

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi,

Check this too:

Regards, Suresh KB

Answers (1)

Answers (1)

Former Member
0 Kudos

using this string solved my problem:"ddic:com.sap.dictionary.boolean"

thanks everybody!!!