cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

dcf hide specific attribute values

ptc-4796391
1-Newbie

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 2

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 🙂


Hi Brandon


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


Marcin

Announcements

Top Tags