Specifications
Components 211
Example
function getContextMenuId()
{
return "DWConnectionsContext";
}
<shortcutlist app="ultradev" id="DWConnectionsContext">
<shortcut key="Cmd+I" domRequired="false"command="clickedInsert();"
id="DWShortcuts_ServerComponent_Insert" />
<shortcut key="Del"domRequired="false"
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Connection’))"
command="clickedDelete();" id="DWShortcuts_ServerComponent_Delete" />
</shortcutlist>
<menubar name="" app="ultradev" id="DWConnectionsContext">
<menu name="" id="DWContext_Connections">
<menuitem name="_Edit Connection..." key="Cmd+I"
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Connection’))"
command="clickedEdit();" id="DWContext_Connections_TestConnection" />
<menuitem name="Du_plicate Connection..." key="Cmd+P"
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Connection’))"
command="clickedDuplicate();" id="DWContext_Connections_TestConnection" />
<menuitem name="_Delete Connection..." key="Cmd+D"
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Connection’))"
command="clickedDelete();" id="DWContext_Connections_TestConnection" />
<menuitem name="_Test Connection..." key="Cmd+T"
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Connection’))"
command="clickedTest();" id="DWContext_Connections_TestConnection" />
<separator/>
<menuitem name="New Recordset..."
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Table’))" key="Cmd+Q"
command="clickedRecordset();" id="DWContext_Connections_TestConnection" />
<menuitem name="View _Data..." key="Cmd+D"command="clickedViewData();"
enabled="(dw.serverComponents.getSelectedNode() != null &&
(dw.serverComponents.getSelectedNode().objectType==’Table’))"
id="DWContext_Tables_ViewData" />
<separator/>
<menuitem name="_Insert" key="Cmd+I" domRequired="false
"command="clickedInsert();" id="DWShortcuts_ServerComponent_Insert" />
<menuitem name="_Refresh" key="Cmd+R"
command="dw.serverComponents.refresh()"
id="DWContext_Connections_TestConnection" />
</menu>
</menubar>
<menubar name="" app="ultradev" id="DWConnectionsChoosersContext">
<menu name="" id="DWContext_ConnectionsChooser">
<menuitem dynamic name="Choosers"app="ultradev" file="Menus/MM/
DB_Connections.htm" id="DWContext_Connections_Chooser_List" />
</menu>
</menubar>