editorMenuCallback
User-defined callback operation for Menu Plugin options in the Actions menu of object editors.
public operation editorMenuCallback
params
string pObjectUrl: in
string pRedirectionUrl: out
numeric pRefresh: out
endparams
; <... Your code here ...>
end
Parameters
-
pObjectUrl—URL of the current main development object, in the format ObjectType
:
ObjectName. For example,cpt:MY_COMPONENT
,ent:SALES_ORDER.SALES
,aps:MY_APP
,libsnp:MYSNIPPETS
, and so on.
- pRedirectionUrl—specify the URL of the object that should get focus.
The URL is normally for a main development object, for example
cpt:MYCOMPONENT
orent:MYENTITY
, but it could be for a subobject, or even a specific worksheet, window, or location in the Script Editor. For more information, see U-Bar Syntax.If this parameter is left empty, the focus is not changed after the menu action completes. If a URL is specified, the associated editor is opened, or gets focus if it was already open.
- pRefresh—indicates whether editors should be refreshed; one of
0
,1
, or2
.0
—do not refresh1
—refresh the editor that has or gets the focus after the menu action completes.By default, the current editor is refreshed, but if the pNavigateTo parameter specifies a URL to an editor, that editor will get refreshed.
Note: Use this option only if a Repository update was done for the specific main development object. Otherwise, it is preferable to avoid the extra performance overhead that a refresh entails.
2
—refresh all editors.Note: Use this option with care, as it may cause unnecessary delays when giving focus to editors that are not affected by the updates.
Description
The IN parameter provides the context of the object to use in the action defined by the operation.
The OUT parameters can be used to request behavior from the IDE on completion of the option.
generateStatistics
public operation generateStatistics params string pObjectUrl: in string pRedirectionUrl: out ; if needed, specify a URL to change the focus numeric pRefresh: out ; 0=no refresh, 1=current/requested editor, 2=all editors endparams ; code to collect some data FLD1 = "Statistics for %%(pObjectUrl)%%%"" return 0 end ; getStatistics