Question
Qa Ltd
GB
Last activity: 24 Oct 2019 12:13 EDT
Calculating price from dropdowns
Hi guys,
Can anyone help me with set a price to drop down fields? Right now I have a few drop down fields that allow a user to select the specifications of a screen they want to buy (see picture). I want to assign to each field in the drop down a price.
Thanks
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hello James,
Can you please elaborate your requirement clearly?
Qa Ltd
GB
Hi rakss
I have a dropdown field containing several choices. I want to assign an unit price to each of those choices.
e.g. : Dropdown > LED
LCD
OLED
I want to assign a different unit price for each led, lcd, oled, e.g. LED is $20
Thanks
Pegasystems Inc.
US
Hi,
What is your Pega version? Please let us know. Thank you
Qa Ltd
GB
Pega 8
Pegasystems Inc.
GB
Is the price based on the values selected in all the drop downs or just one?
Where do you get the price data from? Do you want to store it in the Pega platform or look it up externally?
It sounds like you might want to look at using a data page to source and lookup the the price, but the exact configuration would depend on the requirements.
You could configure a data type to hold all the information and then use a parameterized data page to look up the price based on the selections.
Pegasystems Inc.
US
If you're not looking to look up the price and simply display one thing to the user, but have a different value on the backend, you can consider something like a prompt list which you can define on your property.
In this mockup the names will be displayed to the user, but the price is what is being chosen and stamped on the property.
e.g.
Pegasystems Inc.
IN
Hi,
As an alternate solution, you can also use the decision table and data transform to meet your requirement.
Regards,
Geeda
Pegasystems Inc.
IN
Hi,
You can also use report definition for this purpose. The report definition can be in same data class in which your data is present. The Property source will be report definition which will be having filter criteria using 'Primary.PropertyName' to fetch the value for price.
Regards,