Creating a New Command Object using the Web Tools Wizard
To create a new command object
-
Log into the Web Tools client.
-
Open an editable Development Workspace.
-
Click the New Object Wizard button. It has a magic wand icon.
-
Choose the Command icon and click Start.
-
The first view that appears has three fields.
-
Name (Required): This is the name for your new Command object. It must be a unique Name for a Command object in the Repository.
-
Project (Required): This is the Project in which to put the new Command.
-
Target: The two values are Server and Browser. Choose Server to send the Command to the Server to be handled. Choose Browser if you have written Browser Script to handle the Command.
-
-
When you have configured the three fields click the Next button.
-
The next view has two fields and a radio button group. The two fields depend on which radio button has been chosen. There are two radio buttons.
-
Application: Choose Application if you want the command to be handled by the Application object. Either you have written script on the Application object to handle the Command’s method or the Application itself handles the method in the C++ class. If you pick Application, type the method name in the Method field. If there are any method arguments, type them in the Method Argument field.
-
Business Service: Choose Business Service if you want the command to invoke a method on a Business Service. If you choose the Business Service radio button, type the method name in the Method field. If there are any method arguments type them in the Method Arguments field.
-
-
Once you have configured how you want to handle the Command’s method, click the Next button.
-
The next view allows you to configure three properties.
-
HTML Bitmap: If you wish for your Command to be represented by a specific image such as a trash can for example, you can specify that in the HTML Bitmap field.
-
Tooltip Text: If you want to add a Tooltip so that when a user hovers over the Command’s control, specify the text here.
-
Show Popup: If, when the Command is invoked, you want a popup to appear, check the Show Popup checkbox. You can then specify the dimensions of the popup box.
-
Height (px): This is the height in pixels for the popup box.
-
Width (px): This is the width in pixels for the popup box.
-
-
-
Once you are satisfied with your configuration click the Next button.
-
The next view gives you a summary of your choices. If you are satisfied with the choices click the Finish button.