Discussion

3
Replies
386
Views
JessicaW8826 Member since 2015 2 posts
TCS
Posted: September 3, 2015
Last activity: May 30, 2017
Closed

Issue With Getting Correct Sum With Radio Buttons / Prompt List

I've been working on a rather simple assigned project to get hands-on experience with Pega (7.1.8).

It's basically an online food ordering system - the process involves the user selecting an appetizer / drink / entree.

My data model is something like this: I have a 'single page' property (.Drink) that contains some single value properties (of type decimal, for the price), which are .Coffee, .Tea and .Soda.

For each of these types of drinks, in the "Edit Property" work area, I've set the Table type to 'Prompt List' - and inserted the decimal values in the 'standard value' text box, and in the 'prompt value' text box, I have things like 'Cola', 'Gingerale', 'Diet Cola'.

See this image...

So anyhow, on my 'select drink' section - I also display a 'drink total' - a running total of the user's various selections from the radio buttons for the different drink types - that uses a declare expression.

It MOSTLY works.
However...

For each section (select drink  select appetizer  select entree) - the VERY FIRST radio button - on each section - does not register into the 'drink total' property when I click it. Every other radio button works just fine. Even the second/third radio button in the group calculates into the total properly.

If I switch the order of the drinks (Tea on the top) - the first radio button still doesn't calculate. On all three sections.

I have no idea what could be wrong, and there are other people doing the same project, implementing the data model the same way, that don't have this issue.

I'd really appreciate any advice that any of you could give.

Case Management
Moderation Team has archived post
Share this page LinkedIn