Omnis Technical Note TNGI0026 December 2009

Standard Menu Command

For Omnis Studio 4/5
By Götz Krija

The 'Standard menu command' command allows you to call any built-in Omnis menu command or option from within your Omnis code. Every menu command or option in the Omnis IDE is assigned a number that can be called using this command. The syntax for the command is:

Standard menu command number {menu-option}

For example, the following command will open the Print destination dialog:

Standard menu command 11090 {Print Destination '$'...}

Note that several of the menu options available to this command are only available in the Omnis IDE and are not available in the Omnis runtime; therefore you should not use them in end-user libraries. Note also that this command cannot run in the Omnis web client.

When you select 'Standard menu command' in the Omnis Method Editor, you can select the menu option from a list, and the command number is prefixed with the menu name. You can however execute the command with the number alone. We are often asked what numbers can be used with the command, therefore we thought it might be helpful to publish a list of the numbers for you here:

Standard menu command 11001 {Undo}
Standard menu command 11002 {Cut}
Standard menu command 11003 {Copy}
Standard menu command 11004 {Paste}
Standard menu command 11005 {Clear}
Standard menu command 11006 {Select All}
Standard menu command 11009 {Exit}
Standard menu command 11020 {Open Library...}
Standard menu command 11060 {Catalog...}
Standard Menu command 11064 {Page Setup...}
Standard menu command 11065 {Paste From File...}
Standard menu command 11066 {Property Manager...}
Standard menu command 11075 {Revert...}
Standard menu command 11077 {Print}
Standard menu command 11078 {Save}
Standard menu command 11079 {Print Report From Disk... }
Standard menu command 11081 {Design}
Standard menu command 11082 {Runtime}
Standard menu command 11083 {Combined}
Standard menu command 11090 {Print Destination '$'...}
Standard menu command 11114 {Close Library}
Standard menu command 11116 {Desktop}
Standard menu command 11134 {Remove DDE Link}
Standard menu command 11669 {Icon Editor...}
Standard menu command 12500 {Browser...}
Standard menu command 12503 {Notation Inspector...}
Standard menu command 12520 {Inheritance Tree...}
Standard menu command 12527 {Server Configuration...}
Standard menu command 12528 {New Library...}
Standard menu command 12529 {Open Library...}
Standard menu command 12600 {Component Store...}
Standard menu command 12700 {Export Data...}
Standard menu command 12820 {Import Data...}
Standard menu command 12901 {Trace All Methods}
Standard menu command 12903 {Disable Debugger At Errors}
Standard menu command 12904 {Disable Debugger Method Commands}
Standard menu command 12908 {Save Debugger Options}
Standard menu command 12909 {Open Trace Log...}
Standard menu command 12911 {Revert To Saved Options}
Standard menu command 12913 {Debug Next Event}
Standard menu command 12920 {Trace Log...}
Standard menu command 12921 {Change Serial Number...}
Standard menu command 14000 {Find And Replace...}
Standard menu command 14004 {Find Next}
Standard menu command 15000 {Options...}
Standard menu command 15015 {Toolbars...}
Standard menu command 16002 {Next Record}
Standard menu command 16003 {Previous Record}
Standard menu command 16004 {Find Record}
Standard menu command 16005 {Edit Record}
Standard menu command 16006 {Insert Record}
Standard menu command 16007 {Insert With Current Values}
Standard menu command 16008 {Delete Record}
Standard menu command 16009 {Clear Window}
Standard menu command 16010 {Set Main File...}
Standard menu command 20000 {Paste Link}
Standard menu command 20002 {Links...}
Standard menu command 20003 {Insert Object...}
Standard menu command 20100 {Object}