Driving the Activation or Deactivation of Custom Commands

You can decide to activate or deactivate a custom command depending on parameters entered by the end-user.

For example, commands might not be made available at the same time, or need to be activated only if the end-user sets specific values in a dialog box.

  1. Open a Know-how Apps component.
  2. Add a type to the component. For more information, see Creating Types.
  3. Add at least one Boolean attribute. For more information, see Managing Attributes.
    Note: Each Boolean attribute drives the availability of a command.
  4. Add a sequence of operations and change your Boolean values in the operations. For more information, see Working With Operations.
  5. Create your command and select the type and the Boolean value that will drive the availability of the command.
  6. Create your app, your section and add the command to the section. For more information, see Creating an App.
  7. Open your newly created command and link your object to the type.

    The command is not available at that time.

  8. Check that your command availability changes when you execute the operations that change the attribute linked to the command.