Skip to main content
1-Visitor
October 25, 2012
Question

dcf hide specific attribute values

  • October 25, 2012
  • 2 replies
  • 655 views

Hey


I am aware that you can hide specific elements/attributes with ElementOptions/AttributeOptions in the dcf file however I have a problem where I need to hide one of the attribute's value so for example:


element <test>
attribute @myAttr, possbile values ('Test1', 'Test2', 'Test3')


I would like to have element <test> to show only 'Test1' and 'Test2' in some kind of conditional situation so let's say when parent of <test> is <application> then show all attribute values of @myAttr, when parent of <test> is <development> then show only 'Test1' 'Test2' without 'Test3'.


Any help with this would be much appreciated!


Thanks all


Marcin

    2 replies

    1-Visitor
    October 26, 2012
    Unfortunately, I think this requirement is beyond the capabilities of the
    DCF file. However, you should be able to do it via the modify_tag ACL
    callback, which is called just before the Modify Attributes dialog is
    displayed. One of the arguments to the callback is the window identifier
    of the dialog, which you can use to alter the dialog.

    -Brandon 🙂


    1-Visitor
    October 29, 2012

    Hi Brandon


    Thanks for your answer, it's clear to me now 😉


    Marcin