Hi all,
I have a bapi which returns a table where one of the field is char(1), I should bind this field with a check box in the UItableelement. When i try to change the celleditor to check box it raises an error as select an attribute of type boolean. how to solve it.
Also if we can change the char data type to boolean in the bapi table my problem is solved.
Thanks in advance.
problem solving reply is awarded.
Add a (calculated, readOnly=false, boolean) attribute "Checked" to the context node.
Assuming the char(1) attribute is named "X", implement the get and set methods like
boolean getChecked(I<Node>Element element) { return "x".equalsIgnoreCase( element.getX() ); } void setChecked(I<Node>Element element, boolean value) { element.setX(value ? "x" : " "); }
Armin
Add a comment