Show All

Registering a parameter

Before you can use a parameter with a database-driven document created with the Database Wizard, you first need to register it. Registering a parameter creates a definition for the parameter in the document’s source code and allows it to be used in any database-driven block in the document. You can register a parameter either within the Database Wizard or after you have completed the wizard.

Namo Web Editor icon reveal Registering a parameterTo register a parameter within the Database Wizard
  1. In step 4 of the wizard, Selection Statement, click the button next to the Filter box and then click <Add New Argument>.
  2. Click Add. A new parameter will appear in the parameter list, and its name will be highlighted.
  3. Namo Web Editor 8.database.parameters.1 Registering a parameter
  4. Type a name for the parameter and press Enter.
  5. Double-click the word Integer in the Data type column, and then select the appropriate data type. (You should select the data type that matches the data type of the database field that the parameter will be used with in the filter condition. For example, if the parameter will be used with a numeric ID field, select Integer.)
  6. Click OK.
Namo Web Editor icon reveal Registering a parameterTo register a parameter after completing the Database Wizard
  1. Right-click anywhere in the document, point to Database, and then click Document Properties.
  2. Click the Parameters tab.
  3. Click Add. A new parameter will appear in the parameter list, and its name will be highlighted.
  4. Namo Web Editor 8.database.parameters.2 Registering a parameter
  5. Type a name for the parameter and press Enter.
  6. Double-click the word Integer in the Data type column, and then select the appropriate data type. (You should select the data type that matches the data type of the database field that the parameter will be used with in the filter condition. For example, if the parameter will be used with a numeric ID field, select Integer.)
  7. Click OK.

Registering a parameter