Navigator > Setup > SQL Query Builder > Wizard tab
See also SQL Query Builder.
Generate MaxBasic code to create a memory table containing the query results. If your SQL query contains parameters, the Wizard tab will also generate MaxBasic code to create a scripted form, allowing input of the parameters. This code can be run before executing the SQL query.
Memory Table Name |
Enter a name for the memory table that will be used to store the SQL query results. |
||
Scripted Form Caption |
Enter a caption to be displayed on the input scripted form created to input parameters. Defaults to Selections on Generate if not entered. |
||
|
Generate |
The Wizard builds MaxBasic code to create a scripted form to input the parameters, then to execute the SQL code and save the results in a memory table. The Script Editor opens, displaying the generated code. |
|
Generate File Reference |
Enabled when a .pfq file has been loaded and there are no unsaved changes. When Selected, the generated code will execute the .pfq file rather than explicitly include the SQL query. |
||
Grid Fields |
|||
Name |
The parameter name. |
||
Caption |
The caption to be shown on the scripted form. Defaults to the parameter name. |
||
Input Type |
Select the type of parameter. |
||
Style |
The style of input to be used when prompting for and matching to the parameter. Note: Use From Equal or All and To Equal or All where you have Between parameters in the query but only want a single Input prompt which if left blank will select From First to Last. |
||
Lookup Source |
If available, select the source for the parameter. |
||
If Blank |
Action to take if the parameter is not input. |
||
Default Value |
Optionally enter a default value for the parameter. If the Input Type is blank, the parameter will be set to this value. |
||
List Values |
Optionally enter a list of values to select from. |
||
Grid Toolbar |
|||
|
Expand Toolbar |
Expand the toolbar to give access to all toolbar options. Press |
|
|
Move up / Move down
|
Move a line up or down the grid. |
|
|
Customise |
Opens Customise Fields, you can customise the fields visible in the grid. |
|