Previous Topic: Menu Designer DialogNext Topic: Modify Stylesheets


Functions Useful in Menu Items

CA SDM provides a menu bar on almost every form to control its functions. The menu bar is generated by an HTMPL form with a name of the form menubar_xx.htmpl. We recommend that you use WSP to customize existing menu bars and define new ones.

The following predefined functions may be useful for scripts invoked by menu items:

upd_frame(form)

Loads a new form into the main window content frame.

create_new(factory, use_template, width, height [,args])

Pops up a form to define a new record.

Popup_window(name, form[, width, height [,features [,args]]])

Pops up a new window.

showDetailWithPersid(persid)

Pops up a detail record.

The following terms and definitions apply to the previous functions:

form

This is either an HTMPL file name of the form xxx.htmpl or an operation code (for example CREATE_NEW).

factory

This is the name of a database object.

use_template

This is either true or false.

width

This represents the desired form width or zero for default.

height

This represents the desired form height or zero for default.

features

This is a list of window features, in the same format used with the standard window.open function.

args

This is one or more args of the form "keyword=value" for the operation specified for form.

persid

This is a persistent ID in the form factory:ID.