Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Overwriting canEdit/canSave

    Hi,

    We've got custom simpleTypes and custom editorFormItems for them. I noticed that setting canEdit=false or canSave=false does not have any effect on the formItems generated by such a DataSource. For built-in java types (e.g. integer) it works fine.

    How can we overwrite the behavior of this such that setting canEdit on the DS field makes the field behave differently?

    Ideally, I would like the editorFormItem to stay the same formItem (not transformed into a StaticTextItem) but instead show its disabled look.

    #2
    You can check for these flags via getAttributeAsBoolean("canEdit") and change your item to disabled if it's present.

    Comment

    Working...
    X