on 07-24-2006 4:18 PM
Hello,
i need to disable editing on some rows in table. Also i need to change style of some rows, is it possible in webdynpro (some sample code?) or i have to use PDK?
thanks
JJ
Jiri,
Yes, this is possible with WD.
Just bind property "enabled" of table cell renderers to context attribute of type "boolean" (attribute must resize in same node as "data" for renderer or in 1..1 non-singleton subnode of thereof).
Again, style customization is the same, however it is supported in NW04s. In previous version you may onnly alter color of TextView cell renderer.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jiri,
Let us assume your attribute CHAR1 name is Flag. So:
1. Right under the node with attribute Flag create sub-node with cardinality 1..1, singleton=flase, name it UISettings
2. In this sub-node create boolean attribute EditorEnabled
3. Mark EditorEnabled attribute readOnly=true, calculated=true
4. Switch to source editor, and write the following for method getUISettingsEditorEnabled:
return "X".equalsIgnoreCase(element.getParentElement().getAttribute("Flag");
5. Bind "enabled" properties of cell renderers to EditorEnabled attribute.
Make sure to rename "Flag" in code to actuall property name from BAPI!
Valery Silaev
EPAM Systems
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.