Top Method Summary
Options Name Purpose
AddContextMenu (JsonObject, handle, handle) Adds the contextMenu array of the ContextMenu attribute to the JSON of a component
CHARACTER GetSecurityKey (handle) Returns the security key of the container the context menu is rendered for
LOGICAL IsRestricted (character, JsonObject) Returns if a tool is restricted by the toolbar security
Progress.Json.ObjectModel.JsonArray RenderContextMenu (character, handle) Renders a ContextMenu attribute value as a JSON array
Progress.Json.ObjectModel.JsonObject RenderItem (integer, logical) Renders an item of the context menu or of a submenu


Method Detail
Top

AddContextMenu (JsonObject, handle, handle)

Purpose: Adds the contextMenu array of the ContextMenu attribute to the JSON
of a component
Notes: Does nothing when the object type has no ContextMenu attribute or
when the attribute is empty

Parameters:
poJson Progress.Json.ObjectModel.JsonObject
The JSON object to add the contextMenu array to (componentOptions of a component, the JSON of a viewer field)
phAttributesBuffer HANDLE
The handle of the buffer with the attribute values of the instance
phRepositoryData HANDLE
The ProDataset with the repository data
Top

CHARACTER GetSecurityKey (handle)

Purpose: Returns the security key of the container the context menu is
rendered for
Notes: The name of the container object master, like for the tools of the
toolbar

Parameters:
phRepositoryData HANDLE
The ProDataset with the repository data
Returns CHARACTER
The security key
Top

LOGICAL IsRestricted (character, JsonObject)

Purpose: Returns if a tool is restricted by the toolbar security
Notes:

Parameters:
pcToolId CHARACTER
The id of the tool
poButton Progress.Json.ObjectModel.JsonObject
The button definition of the tool
Returns LOGICAL
Logical value indicating if the tool is restricted
Top

Progress.Json.ObjectModel.JsonArray RenderContextMenu (character, handle)

Purpose: Renders a ContextMenu attribute value as a JSON array
Notes:

Parameters:
pcContextMenu CHARACTER
The ContextMenu attribute value
phRepositoryData HANDLE
The ProDataset with the repository data, used to determine the security key of the container
Returns Progress.Json.ObjectModel.JsonArray
The JsonArray with the context menu items
Top

Progress.Json.ObjectModel.JsonObject RenderItem (integer, logical)

Purpose: Renders an item of the context menu or of a submenu
Notes: Tools without a definition are skipped, like in the toolbar

Parameters:
piEntrySequence INTEGER
The EntrySequence of the entry in ttContextMenuEntry
plDisabled LOGICAL
Logical value indicating if the item is disabled because its submenu is restricted
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject with the item or the unknown value


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2026 08:17:21