ADM2 -Dynamic toolbar

Posted by sridevi.stalin on 31-Jan-2012 23:37

How to enable/disable dynamic toolbar menu options from smart window?

All Replies

Posted by Håvard Danielsen on 01-Feb-2012 11:00

You can mark actions as disabled in the Instance Properties of the toolbar, unless you are using a very old version of adm2. (I do not know which version this was added). It is also possible to defines rules for actions and get context sensitive disabling/enabling. In Dynamics you can define these rules from the tools. In standard adm2 you would need to add custom code to define the rules.

I wrote a short summary of this 5 years ago.

This white paper is 12 years old and written before the instance properties and rule support were added, but it does show how to use the initAction and defineAction methods you would use  to add rules to a standard adm2 toolbar.

This thread is closed