Tobias Krais wrote:
Hi together once again,
at the moment I try to disable a command, but transient. I found an
example in the Dev-Guide. In this example I find two methods - one for
disabling the commands and the other for enabling them again.
I would like to make the disabling transient. Up to now I learned from
Carsten, that I have to change a PropertyValue:
xPropertySet.setPropertyValue("Persistent", new Boolean(false));
I tried to apply it to several Objects, but it does not work out.
Can you tell me wether it is possible to make these changes transient?
The code is below.
Hi Tobias,
This is not possible. The user interface configuration is not related to
the normal Office configuration. The special "transient" property is a
special feature of the user interface configuration API. Another problem
is that the disable command feature always works globally, means that
all application modules are affected. If you want to disable a command
only transient, you can use a dispatch interceptor. See the Developer's
Guide for more information.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]