Skip to main content
1-Visitor
February 17, 2011
Question

Setting a context specific attribute to read-only ?

  • February 17, 2011
  • 1 reply
  • 662 views
Hello everyone,

Just wondering if anyone know how to set an attribute to read-only -
in a specific context.

In the .dcf I can set>
<attributeoption attribute="attname" dialoghidden="no" readonly="yes"/">

But I need to set it at a specific level. The same @attname at the
root level needs to be editable.


thanks,
Tracey

    1 reply

    1-Visitor
    February 17, 2011
    Offhand, I'd say your best bet is to intercept the opening of the
    Modify Attributes dialog using a "create" window callback. This will
    give you the opportunity to examine the current element and make the
    relevant attribute(s) read-only by disabling the corresponding XUI
    controls.

    -Brandon 🙂