KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Limiting the number of methods and forms in the Label Editor dialog
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: May 16, 2007

The Label editor dialog allows you to use a form as a label or to run a method when printing each label.

By default, the dialog will display all forms and all visible methods. If you want to reduce the choice of these forms and methods, you need to modify resource 1301. Specifically you can "filter" the list of methods and forms. Here is an example:

`=====================================
STRING LIST TO ARRAY(1301;$at_options)
$at_options{3}:="Label_@"
$at_options{4}:="L_@"
ARRAY TO STRING LIST($at_options;1301)
`=====================================


Elements 3 and 4 of this array control the filtering.

The third element of the array contains "@" by default. This means that all forms of the current table will be visible. In the above example the text "Label_@" filters the list so that only forms starting with "Label_" will be available in the popup menu.

The fourth element of the array contains "@" by default. This means that all visible methods will be available in that popup menu. With "L_@", only methods starting with "L_" will be available in that popup menu.