attribute value inheritance

Hi all,

I have a multi-value attribute that inherits its value from parent to child object. ok.
When I set a different value for a child object, then the tickbox in the attribute value editor is unchecked.
When I manually set the value back to the default value, the tickbox remains unchecked.
When I manually select 'Reset to Default' in the attribute column the tickbox is checked again.

Is there a DXL-way to check this box again?

Karl
kabr - Wed Oct 10 08:45:46 EDT 2012

Re: attribute value inheritance
OurGuest - Wed Oct 10 10:30:45 EDT 2012

Try:
 

inherited, inheritedDef, inheritedVal 
Declaration 
string inherited({Object o|Module m|Project p
                  |Folder f|Item i|View v}
                    [,AttrType at]) 
string inherited{Def|Val}(Module m, AttrDef ad) 
Operation 
These functions set access control to be inherited rather than specific. 
 
The first form does this for object o, module m, project p, folder f, item i, 
or view v. Optionally, for a module, the access record can be for a 
specific attribute type at. 
 
The inheritedDef function does this for the attribute definition ad in module m. 
The inheritedVal function does it for the attribute value of the attribute 
definition ad in module m. 
 
If the operation succeeds, returns null; otherwise, returns an error message.

Re: attribute value inheritance
SystemAdmin - Thu Oct 11 04:12:42 EDT 2012

You "Reset to Default" to inherit the value by emptying the attribute value, see earlier discussion in
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14852706

  • Pekka Mäkinen - http://www.softqa.eu/

Re: attribute value inheritance
kabr - Thu Oct 11 06:00:41 EDT 2012

SystemAdmin - Thu Oct 11 04:12:42 EDT 2012
You "Reset to Default" to inherit the value by emptying the attribute value, see earlier discussion in
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14852706

  • Pekka Mäkinen - http://www.softqa.eu/

Yes, Pekka, you are right and I was aware of the earlier thread.

Only I thought it didn't work because I set the attribute to inherit its values when it already was in use.
Somehow it did not work then.
I deleted and created the attribute again with the same definition and now it works as expected.

My mistake!

Sorry all!

Karl