v5:reference:recordset:getmenu3
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:recordset:getmenu3 [2019/01/01 22:41] – mnewnham | v5:reference:recordset:getmenu3 [2019/01/01 23:50] (current) – [Description] mnewnham | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| optional string $selectName='', | optional string $selectName='', | ||
| optional mixed $defaultValue=false, | optional mixed $defaultValue=false, | ||
| - | optional | + | optional |
| optional bool $multiple=false, | optional bool $multiple=false, | ||
| optional int $numberOfRows=0, | optional int $numberOfRows=0, | ||
| Line 25: | Line 25: | ||
| In order for the optgroup to work correctly, the SQL statement used must be ORDERED by some order that begins with the 3rd column in the SELECT. | In order for the optgroup to work correctly, the SQL statement used must be ORDERED by some order that begins with the 3rd column in the SELECT. | ||
| + | If more than 3 columns are returned, the 4th and greater columns are discarded. | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| ==== $selectName ===== | ==== $selectName ===== | ||
| Line 32: | Line 32: | ||
| The value to highlight. Use either a string for a single value to match, or a numeric array if a multiselect box is going to be built and there are multiple matching defaults. | The value to highlight. Use either a string for a single value to match, or a numeric array if a multiselect box is going to be built and there are multiple matching defaults. | ||
| ==== $blankFirstLine ==== | ==== $blankFirstLine ==== | ||
| - | true to leave the 1st item in list empty | + | This parameter has the following available options: |
| + | |||
| + | * true (default) - creates an empty ''< | ||
| + | * false - does not creates an empty ''< | ||
| + | * string value - creates an ''< | ||
| + | * string value format '' | ||
| ==== $multiple ==== | ==== $multiple ==== | ||
| Set true to create a multi-select box | Set true to create a multi-select box | ||
v5/reference/recordset/getmenu3.1546378886.txt.gz · Last modified: by mnewnham
