Conduit API
Case Study
Web Page API -> AddApplicationMenuItem
 
This function is used to add a "Launch-Application Menu" item to the dynamic menu.
 
AddApplicationMenuItem(uniqueComponentID,
menuItemCaption,
menuItemIconUrl,
exeAlias,
params,
appNotFoundUrl)
 
Parameter Description Range Type
uniqueComponentID The dynamic menu's unique ID not null or empty string
menuItemCaption The text on the menu item not null or empty string
menuItemIconUrl The URL of the icon which is displayed on the menu item not null or empty string
exeAlias The executed application's alias registry key not null or empty string
params The parameters necessary to execute the application not null or empty string
appNotFoundUrl The URL to use if the application is not found not null or empty string
 
An object that contains the following fields:
Field Name Description Type
returnValue Indicates whether the operation was successful.
True - The function adds a launch application menu item to the dynamic menu
False - The launch application menu item is not added to the dynamic menu. Check the value of the errorCode to determine the specific reason for the function failure
boolean
errorCode
Specific error code. See Error Code Table for additional information.
int
 
*Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example contains a button that when clicked upon will insert a Menu item for each available dynamic menu on the Conduit demo toolbar.