Skip to main content
Oct 25, 2012 12:07 PM UTC
Question

dcf hide specific attribute values

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

    Oct 26, 2012 3:42 PM UTC
    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 🙂


    Oct 29, 2012 10:12 AM UTC

    Hi Brandon


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


    Marcin