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.


***Edited by Moderator: Lochan to update platform capability tags***


Keep up to date on this post and subscribe to comments

October 23, 2019 - 4:57am

Hello James,

Can you please elaborate your requirement clearly?



October 23, 2019 - 5:07am
Response to rakss

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



I want to assign a different unit price for each led, lcd, oled, e.g. LED is $20


October 23, 2019 - 8:35am


What is your Pega version? Please let us know. Thank you

October 23, 2019 - 9:03am
Response to tanie_GCS

Pega 8

October 23, 2019 - 8:53am

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.

October 23, 2019 - 9:21am

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.


October 23, 2019 - 3:02pm


As an alternate solution, you can also use the decision table and data transform to meet your requirement.


October 24, 2019 - 12:13pm


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.