...
- Open the desktop project where you want to create a custom action.
- Click Develop > Custom Actions.
- Click Create Custom Action.
- Do the following in the order listed.
- Enter the name of action, in Action Name.
- Enter the role of the custom action, in Description.
- From the Technology drop-down list, select the technology under which you want to create a custom action.
- From the Base Class drop-down list, select a base class.
- If you select a base class as General to create general actions, you get a pop-up to select Java or VB.
Do one of the following:- To do coding in VB as coding language , select VB, and continue performing the actions as mentioned here.
- To do coding in Java, select Java. The dialog box for creating general actions opens. For more information, refer to creating a custom action for web and mobile projects.
- From the VBS File drop-down list, do one of the following:
- Select an existing visual basic file.
- Select Create New File to create a new visual basic file. Enter the name of the new VB file you want to create without including its extension.
- From the Functions drop-down list, do one of the following:
- Select an existing function or select .
- Select Create New Function to create a new function.
If you select Create New Function, enter Enter the name of the new function you want to create.
Select an existing function
Under Properties, do one of the following:
- To select If you have selected an existing function, the existing arguments are displayed.
- Remove or add new parameters.
- You need to select data type for existing parameters.
- To create a If you have selected a new function, add new parameters along with their data types.
Info Do not set the object parameter as given in the custom class. The user only needs to add the parameters in the same sequence as given in the vbs file excluding the Object Parameter. Then select the argument data type as String, Integer, or Array. Also, check if the parameter is Mandatory. Deselecting Mandatory option indicates that the parameter is not mandatory, that is zero length string data is allowed.
- To select If you have selected an existing function, the existing arguments are displayed.
- Do one of the following;
Click the Save button to save the custom action in the selected VB script file.
Click the Save and Launch Editor to save the custom action in the selected VB script file and launch this file in the VB editor.
The custom action is added.
- Click Edit Code to write codes to implement the custom action.
.
...