VisualForce Events for Customizing the Wizard UI
This reference section explains the details of using VisualForce for customizing the Wizard user interface.
| Event Name | Subscribe/Publish | Description | Response |
|---|---|---|---|
ready | publish | Fired from client indicating they are ready to receive events. | Response contains all the metadata: page, variableDefinitions, initialValues needed to render the questions and possible answers for the page. |
update | publish | Fired from client when ready to update one or more variables. | Variables with errors messages. |
visibility | publish | Fired from client to check ‘visibility’ of one or more questions. | Variables and their visibility enum. |
values | publish | Fired from client to request the most up-to-date values of each question. | The values of all variables in the entire wizard. |
next | subscribe | Fired from parent when user clicks “continue” button. May or may not advance the page. If there are errors in the variable values, the page will not advance. | A list of variables that are required with no values. |
resize | publish | Fired from client to change the size of the VisualForce page. | None. |
options | publish | Fired from client to get a list of ‘options’ for filling in drop-down list boxes. | List will be filtered for “queryable,” “excludes,” “exclude selected.” “Tags” will be applied to indicate which option values are “default,” “recommended,” or “previous” values. You can use this for sObjects, sObjectFields, string enums, and number enums. |
computed | publish | Fired from client to set the computed (suggested) values for a variable. | Variables with success or error messages. |
close | publish | Fired from client to close the wizard. No actions are taken as part of the close. | None. |
buttons | publish | Change the text of the Back and Next button. Can also enable or disable the Back or Next button. | |
create | publish | Fired from the client to create an app before the final screen. Calls POST /wave/folder and returns results. | The status of the POST call. Success if app creation is kicked off successfully (not final app status), otherwise Fail. |
dataset | COMING SOON | Dataset | Coming soon; not currently supported in this release. We intend to implement this as an ‘options’ event. |
dataset fields | COMING SOON | Dimensions, Measures tied to parent datasets | Coming soon; not currently supported in this release. We intend to implement this as an ‘options’ event. |
-
Subscribe/Publish: publish
-
Input/Multiple: optional
-
Size: small, medium, large
-
Banner: visible, title, progress
Note: for VisualForce pages, the banner is hidden by default.
-
-
Response: Yes
-
Normalized Input: N/A
-
Input Examples:
{}{size : “large” }{banner : visible : true, title : “My Custom title”, progress : “Almost done”}}{size : “small”, banner : {visible : false}}
-
Output Example:
-
Subscribe/Publish: publish
-
Input/Multiple: yes
-
Response: yes
-
Normalized Input: yes
-
Input Examples:
{name : “myVariable”, value : “some value” }[{name : “myVariable”, value : “some value” }][{name : “myVariable”, value : “some value” }, {name : “myNumber”, value : 123}]{myVariable : “some value”, myNumber: 123, myBoolean : true}{name : “mySObject”, value : {sobjectName : “Account”}}
-
Output Example: always an array
-
Subscribe/Publish: publish
-
Input/Multiple: yes
-
Response: yes
-
Normalized Input: yes
-
Input Examples:
[“myVariable”, “myNumber”][{name : “myVariable”}]{name : “myVariable”}“myVariable”
-
Output Example: always an array
-
Subscribe/Publish: publish
-
Input/Multiple: n/a
-
Response: yes
-
Normalized Input: n/a
-
Input Examples:
{}
-
Output Example:
-
Subscribe/Publish: subscribe
-
Input/Multiple: n/a
-
Response: yes
-
Normalized Input: n/a
-
Output Example: Page will not advance if required fields are not met.
-
-
Subscribe/Publish: publish
-
Input/Multiple: n/a
-
Response: no
-
Normalized Input: n/a
-
Input Examples:
{size : “small”}{size : “medium”}{size : “large”}
-
Subscribe/Publish: publish
-
Input/Multiple: no
-
Response: yes
-
Normalized Input: n/a
-
Input Examples:
{name : “mySObjectVariableName”}{name : “mySObjectFieldVariableName”}{name : “myStringVariableName”}{name : “myNumbertVariableName”}
-
Output Example:
-
Subscribe/Publish: publish
-
Input/Multiple: n/a
-
Response: no
-
Normalized Input: n/a
-
Input Examples:
-
-
Output Example:
None. Buttons should update accordingly.
-
Subscribe/Publish: publish
-
Input/Multiple: no
-
Response: yes
-
Normalized Input: yes
-
Input Examples:
-