Pricefx Classic UI is no longer supported. It has been replaced by Pricefx Unity UI.
Â
How to Create Wizard Dashboard
Aim of this article | Explains how to create a Wizard Dashboard. |
---|---|
Related sections | Wizard Dashboard (Reference Manual) |
Steps:
In Price Setting, create a calculation logic where you define the look and functionality of your Wizard Dashboard.
The main condition is that your code returns thecontroller
object – then it will be recognized by the client as Wizard Dashboard among other dashboards.
For example, for the Online Price section of the Wizard Dashboard shown in the screenshot above, the following code was used:def controller = api.newController() controller.addHTML("<h2>Welcome to Meatball Online</h2>") controller.addButton("1. STEP: Change Online Strategy","pricingParametersPage") controller.addButton("2. STEP: Check Online Prices","priceGridPage","main") controller.addButton("3. STEP: Go to Competitor Prices","competitionPage",) controller.addButton("4. STEP: Change Average Discount","pricingParametersPage","94.LT") controller.addBackendCall("Calculate Online PL","/pricegridmanager.calculate/343",null,"OK Start recalculation","Stop recalculation") controller.addDownloadButton("Download XLS","/formulamanager.executeformula/DashboardExport?output=xls","""{"Customer":"${customerId}", "targetDate":"${new Date().format("yyyy-MM-dd")}"}""") return controller
- In Dashboards, create a new dashboard where you select your calculation logic created in the previous step.
- In the user profile in the Wizard Dashboard field, select this dashboard.
Wizard Dashboard will be displayed to the particular user next time when the user logs in.
If you select other type of dashboard (which is not connected to a calculation logic returning thecontroller
object), nothing will display.
Tips
- Review the complete list of available /wiki/spaces/KB/pages/1763442875.
In the calculation logic (in this case DashboardExport in the above example), you can retrieve parameters specified in the
addDownloadButton
method by usingapi.stringUserEntry
:def targetDate = api.stringUserEntry("targetDate");
In the calculation logic you can use
<a>
tag also with external links, but you need to use the target-attribute (target="_parent"
) inside of the tag. If you do not use the target-attribute, then rendering of the link fails in Salesforce. See a correct example of link generation below:controller.addHTML("<p><a target=\"_parent\" href=\"https://www.atlassian.com\">Atlassian</a></p>")
You can add a button to the dashboard that opens a configuration wizard:
controller.addButton("Open Dashboard", "dashboardPage", null, "FirstDash")
Found an issue in documentation? Write to us.
Â