The promptrenderer Element renders a user prompt that can be inserted into
a page based on the Prompt Page Type.
promptrenderer
Element Properties
|
Property Name
|
Description
|
Prompts |
Defines prompts to render:
Property Name | Description | Identifier | Identifier of the input prompt. Use this as a variable referenced
in an Action button on the advancedtoolbar Element. Example: For an
identifier "mysdcid", a hidden field called action_mysdcid
is already created. Therefore, if using [mysdcid] in the Action button
properties substitutes the value. | title | Text displayed for each input prompt. | Type | Type of data handled by the input prompt.
Type | Description | String | "String" data type. | Number | "Number" data type. | Absolute/Relative Date | "Date" data type. | RefType | Reference Type. | Dropdown from an SDC | Dropdown containing a list of SDCs. | Dropdown from a List of Values | Dropdown containing a list of predefined values. | Dropdown from SQL | Dropdown containing results of a SQL query. | Lookup from SDC | Lookup page containing a list of SDCs. | Lookup from SQL | Lookup page containing results of a SQL query. | Dropdown Definition | Dropdown that retrieves data based on an SDC definition. |
| Type Details | Details about the input prompts.
Property Name | Description | SDC Id | Identifier of the SDC. | Reftype Id | Identifier of the Reference Type. | Lookup WebPage | Name of the Lookup page. | SQL | SQL script to execute. Notes:
• | The number of columns in the select list should be 2. | • | The column aliased by refdisplayvalue is displayed in
the dropdown, while the other is treated as the internal
value. | • | [%currentuser%] and [%sdcid%] are supported substitution
variables. | • | The [%sdcid%] is the sdcid defined in the sdcid property
of the advancedtoolbar Element. Example:
select sdccolumnid, linkid
refdisplayvalue from sdclink where sdcid = '[%sdcid%]' |
| List of Values | Semicolon-separated list of values that are rendered as a
dropdownlist. | Dropdown Definition | Dropdown that retrieves data based on an SDC definition:
Property Name | Description | SDC Id | The SDC for which data is retrieved. | Query From | Value of the From clause for the query. | Query Where | Value of the Where clause for the query. | Query Order By | Value of the Order By clause for the query. | Value Column | Actual column value. | Display Column | Column value displayed to users. |
|
| Validations | Validations for the input prompt. | OnChange | JavaScript executed for an onChange event. This is typically used
to fire Ajax requests that create dependent cascading inputs (such
as dropdowns) during the prompt. See Using OnChange below. |
|
File Upload
|
File Upload component. Use the variable [uploadedfiles] in the Action
button properties to access the the list of uploaded file paths.
Property Name | Description | Show | Yes shows the file browse dialog. | Upload Location | This has been deprecated. Use "File Location Policy Node"
and "File Location Policy Item" (below). | Rename File After Upload | Yes renames the file after the upload. The file is renamed to:
[current user]_[timestamp]_[original
file name] | Create User Subfolder | Yes creates subfolders under the Upload Location for the current
user, then uploads into the subfolder. | File Location Policy Node | Node that governs the location of file uploads in the File Location
Policy. The OOB configuration is Upload Custom. | File Location Policy Item | File location item in the node above (defaults to first node). |
|
Includes |
If you want to use your own JavaScript files:
Property Name | Description | Identifier | Unique identifier for this item, rendered as an ID attribute in
the HTML tag. | URL | URL of the JavaScript (*.js) file containing functions called in
the page. |
|