on 08-24-2006 9:07 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
using this string solved my problem:"ddic:com.sap.dictionary.boolean"
thanks everybody!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.