Siebel CTI Administration Guide > Configuring Events and Commands > Commands >

Hierarchical Commands (Commands and Subcommands)


Communications commands can be defined in hierarchical fashion; you can define group commands that contain subcommands. These subcommands are invoked when the group command is invoked. Grouping or nesting commands using subcommands helps to define the communications user interface in the Siebel application.

For more information about specifying subcommands, see Defining Communications Commands. For more information about how command groups are used in configuring the communications toolbar and menus, see Configuring User Interface Elements.

When you specify subcommands within group commands, note the following:

  • Commands can have subcommands. A command containing subcommands is sometimes referred to as a group command.
  • Do not define invalid recursive subcommand relationships, such as making a subcommand include its parent group command as a subcommand.
  • The Subcommands list in the All Commands view specifies the order in which commands are executed. Alternatively, if the command parameter ExecuteAll is set to True, then all subcommands can execute. As with any command, subcommands can execute only when they are enabled. Subcommands that are disabled are skipped and not executed.
  • If a subcommand fails when executing, then the remaining subcommands are not executed. However, if the command parameter ExecUntilOK is set to True, then the remaining subcommands are executed until one of them succeeds.
  • Subcommands and their order are represented in DEF files you export by using the command parameter SubCommand_N, where N is the order value for each subcommand.
  • At run time, commands that invoke device commands are enabled or disabled based in part on the status of the device command. For more information, see SCCommandFlag and CacheCommandInformation.
  • At run time, commands that invoke business service methods rather than device commands are determined to be enabled or disabled by invoking from the applicable business service the method CanInvokeMethod("method_name"), where method_name is your business service method to be invoked. If True is returned, then the method can be invoked. If False is returned, then the method cannot be invoked and the command is disabled.
  • Several command parameters are used to determine whether a group command or subcommand matches and can be executed. Such command parameters include AllViews, CmdChannelOnFocus, FilterSpec, OnEditControl, and View.
  • Several command data parameters are also used to determine whether a group command or subcommand matches and can be executed. Such command data parameters include BusComp, BusObj, Filter, and RequiredField.
  • Commands specifying subcommands cannot also specify a device command or business service method.
  • If you require a command that executes both a device command and a business service method, then define a group command where ExecuteAll is True and where two subcommands are specified. Define one subcommand to execute a device command, such as a make-call command, and define the other subcommand to invoke your business service method. If you need command data parameters, then create command data definitions and associate them with the subcommands.
  • In some cases, a group command must not have command data associated with it. If a group command is at the top-level (is not itself a subcommand), or if a group command is also a subcommand and ExecuteAll is set to True for its parent group command, then command data might be associated. However, in the latter case, if ExecuteAll is not set to True for the parent group command, then do not associate command data with the child group command.
  • The command parameter SelectApplet (and related parameters such as SelectBusObj, SelectBusComp, SelectView, and so on) can be used to display a dialog box that pertains to all subcommands in a group command, where ExecuteAll is True. To configure this, you must define these parameters in the top-level command and not in the individual subcommands. The dialog box applies to all of the subcommands.
Siebel CTI Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.