Question
LTIMindtree
CA
Last activity: 5 Jul 2017 3:56 EDT
Cascaded Dropdowns in Pega 7.2
Hi,
We have the requirement as below:
There is a dropdown control A whose values are populated using a Data Page (Load Mode -Activity). The load activity calls the service activity and copies the results from the service page into the Data Page.
Now, I have a second dropdown control B whose values would be populated depending on the value selected in dropdown A (As we would do a Dynamic Select in Pega 6.x)
Please suggest the best way to do so.
Regards,
Bidyun
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Hi Bidyun,
Can you use an activity to populate values (depending on the value selected in dropdown A) to a page and make this page as source for dropdown B?
Thanks,
Susan
LTIMindtree
CA
Hi Susan,
Thanks for the suggestion.
Will try the approach and get back.
LTIMindtree
CA
Hi Susan,
This approach you suggested worked fine!
Cheers!
-
Palle Vijay Bhaskar Reddy
Updated: 5 Jul 2017 3:56 EDT
ASM
ID
hi BidyunK5 , i am student in PEGA want to ask you ..
what are you doing to solve the problem ..
please send me step by step
thanks before
***Updated by moderator: Lochan to remove personal information***
Common Wealth Bank of Australia
AU
Hi Bidyun,
Few questions on your requirement :
Where is your dropdown B sourced from?
Is it part of the DataPage as of dropdown A or a new set of values fetched from a different source based on dropdown A?
Regards,
Sri
LTIMindtree
CA
Hi Vidhya,
The source is same for both the Dropdowns.
Values are coming in from a Service and they are copied into the clipboard.
But we need to populate dropdownB based on value entered in Dropdown A.
Regards,
Bidyun
Common Wealth Bank of Australia
AU
Thanks for the reply Bidyun.
Approach I would use to fulfill this requirement would be the following:
- Create another DataPage with structure as "List" for Dropdown B with a parameter of the selected DropDown A value.
- Datasource for this datapage will be a Data Transform which will also accept the same param as Step 1.
- In the Load Management of the Data page for Dropdown B select "Reload once per interaction".
- Construct the DataPage in the Data Transform using your business logic
- Use this second Data Page (with param as selected Dropdown A value) as the source for the drop down B source list..
- Configure a "Post Value","Refresh This Section" actions on the onchange event of drop down A.
- Dropdown B will appear with the filtered list.
Let me know if this helps.
Regards,
Sri