You can continue to use C APIs to customize your application, but C APIs are not enhanced to support new capabilities provided by Java APIs and REST APIs.
Updates the character menu with the indicated name on the specified server. The changes are added to the server immediately and returned to users who request information about character menus. Because character menus operate on clients, individual clients do not receive the updated definition until they reconnect to the form (thus reloading the form from the server).
If you perform a set operation on an overlay and you provide values for an inherited grain, the values are ignored. Only values for extended or overwritten grains of the overlay are set.
BMC Remedy AR System administrator.
refreshCode parameter has no effect on when the updated menu definition is retrieved. Rather, it controls how often the menu contents are retrieved by using the cached menu definition.
#include "ar.h" #include "arerrno.h" #include "arextern.h" #include "arstruct.h" int ARSetCharMenu( ARControlStruct *control, ARNameType name, ARNameType newName, unsigned int *refreshCode, ARCharMenuStruct *menuDefn, char *helpText, ARAccessNameType owner, char *changeDiary, ARPropList *objPropList, char *objectModificationLogLabel, ARStatusList *status)
The control record for the operation. It contains information about the user requesting the operation, where that operation is to be performed, and which session is used to perform it. The user and server fields are required.
If a valid overlay group is specified in the control record, the
ARSet* function operates on the object that belongs to that group. If no group is specified, the function operates on the origin object. To specify whether to use an object's real or resolved name in an operation and whether to perform the operation only on objects in a specified overlay group, use the
AR_SESS_CONTROL_PROP_DESIGN_OVERLAYGROUP variable of the
ARSetSessionConfiguration function (see ARSetSessionConfiguration).
The name of the character menu to update.
The new name for the character menu. The names of all character menus on a given server must be unique. Specify
NULL for this parameter if you do not want to change the name of the character menu.
A value that indicates when the menu is refreshed. This parameter enables you to balance menu consistency with performance.
Refresh only when the form is opened (
Refresh every time the menu is opened (
Refresh the first time the menu is opened and every 15 minutes thereafter (
NULL for this parameter if you do not want to change the refresh code.
The definition of the character menu. Specify
NULL for this parameter if you do not want to change the menu definition.
The help text associated with the character menu. This text can be of any length. Specify
NULL for this parameter if you do not want to change the help text.
The owning user for the character menu. Specify
NULL for this parameter if you do not want to change the owner.
The additional change diary text to associate with the character menu. This text can be of any length and is appended at the end of any existing text. Existing change diary text cannot be deleted or changed. The server adds the user making the change and a time stamp when it saves the change diary. Specify
NULL for this parameter if you do not want to add to the change diary.
A list of server object properties. If this parameter is set to
NULL, no properties are set. See Server object properties.
The version control label that the API function must apply to the object. If the label name does not exist on the server, the function creates it.
Rename and Delete operations typically change multiple objects in addition to their primary target object. The Rename or Delete function must apply the version control label to all the objects that it affects.
Multiple API calls for a single user action
Some user actions trigger a sequence of API calls. In that situation, the last API call in the sequence applies the version control label to the object. Thus, clients that create forms (like BMC Remedy Developer Studio does) should provide the label only to the last call. For example, when a form is created, a client might issue these calls:
In this case, the
objectModificationLogLabel value should be passed only to the last call,
ARSetSchema, even though the user provides the label during the
Operations on label-related forms
Version control labels cannot be applied to these forms:
- AR System Version Control: Label
- AR System Version Control: Labeled Object
- AR System Version Control: Object Modification Log
A list of zero or more notes, warnings, or errors generated from a call to this function. For a description of all possible values, see Error checking.