# Method Selection Wizard

## Overview

The **Method Selection Wizard** gives you the option to either choose an already existing method or create a new one. It presents a organized view of all the methods that are available, sorted into categories such as "form methods," "entity methods," and "scope methods."

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-b9c850a4fe82eec7811e60e81f9b7f71555939d1%2Fmethod-selection-wizard.jpg?alt=media" alt=""><figcaption><p>Method Selection Wizard</p></figcaption></figure>

## Sections

### Filter Box

Use the filter text box at the top to search for methods by name.

### Method Categories

Expand the categories (form methods, entity methods, scope methods) to see available methods.

### Method creation locations

**Create Method In** : Select where you want to create a new method:

#### New Form Method

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-04f14aa56b044dac6cb0c251e07a15a573ce7037%2Fmethod-selection-wizard-form.jpg?alt=media" alt=""><figcaption><p>New Form Method</p></figcaption></figure>

This dialog allows you to specify a name for a new form method and choose its access level.\
Usage:

1. Specify a Method Name: Enter the name for the new form method (e.g., "onAction").
2. Select one of the options:
   * Create Public: Create a public method accessible from other forms and global scopes.
   * Create Private: Create a private method accessible only within the form.
   * Create Protected: Create a protected method accessible only within the form and its subclasses.
   * Cancel: Cancel the creation of the new method.

#### New Entity Method

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-76243f71457fb8fb0b61c942a30772eccfaa272b%2Fmethod-selection-wizard-entity.jpg?alt=media" alt=""><figcaption><p>New Entity Method</p></figcaption></figure>

This dialog prompts you to specify a name for a new entity method.\
Usage:

1. Specify a Method Name: Enter the desired name for the new entity method (e.g., "onAction").
2. Select one of the options:
   * Create: Create the method with the specified name.
   * Cancel: Cancel the creation of the new method.

#### New Global Scope Method

<figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-7f1951095db39457a05adcf0756740e8e912ce3a%2Fmethod-selection-wizard-scope.jpg?alt=media" alt=""><figcaption><p>New Global Scope Method</p></figcaption></figure>

This dialog allows you to specify a name for a new form method and choose its access level.\
Usage:

1. Specify a Method Name: Enter the name for the new form method (e.g., "onAction").
2. Select one of the options:
   * Create Public: Create a public method accessible from other forms and global scopes.
   * Create Private: Create a private method accessible only within the form.
   * Create Protected: Create a protected method accessible only within the form and its subclasses.
   * Cancel: Cancel the creation of the new method.

### Buttons

* **OK**: Select the highlighted method or proceed to create a new method.
* **OK & Show**: Select the method and display it in the editor.
* **Cancel**: Cancel the operation.

## General Steps for Creating a New Method

1. Open Method Selection Dialog: Start by opening the method selection dialog where you can view existing methods or choose to create a new one.
2. Choose Method Type: Decide where you want to create the new method (Form, Entity, or Scope) and select the appropriate button.
3. Name the Method: In the subsequent dialog, specify the name for the new method.
4. Set Access Level (for Form Methods): If creating a form method, choose its access level (public, private, or protected).
5. Create the Method: Click the "Create" button to finalize the creation of the method.
