Question
ACN
PH
Last activity: 14 Jun 2021 7:38 EDT
Make Repeating Dynamic Layout have a dropdown that contains different items per results
I have a pagelist "results" containing resultA and resultB.
resultA and resultB contanis a dropdown that uses "items" pagelist as a clipboard source.
For resultA,based on a .pyValue parameter it should be populated with item1,item2, and item3. While resultB has item4, and item5.
How do I achieve this?
***Edited by Moderator Marissa to update General to Product; Platform Capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Do you mean in the dropdown you have the values result A and result B and based on the selection, you want to populate the item list in the Repeating Dynamic layout?
Are you getting this list from any data type?
ACN
PH
For the repeated sections, it should have resultA, resultB, resultEtc... that also has a dropdown that's populated by a page in the clipboard.
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Create a Data page with source as Data Transform and parameter as pyValue.
In the Data Transform loop through Items pagelist and based on pyValue Parameter append the results to pxResults.
Now we can use the above created Data Page as a source for Result Dropdown.
ACN
PH
I have a similar Data Transform but I'm using page temporary page.
However, I'm having trouble adding the items properly at step 2.1.1. What happens is that the last Param.Item equivalent to pyValue will overwrite the previous results and then both resultA and resultB would have the same results on their dropdown.
Can you help me out append-ing the items properly?
Blue Rose Technologies
DE
Hi,
I think currently we are deleting previously added list due to first step. Can we delete first step and try?
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Yes, it would show the same results because in the clipboard we would have only one Temp page which is the source for both the Drop-down.
If we use the Data Page instead of Temp page, then based on the parameter Data page would be different for both and we can get the respective values.
Pegasystems Inc.
US
Why don't you two separate Data Transforms ? one for each drop down that queries the master data page with the parameter value ?
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Instead of having 2 different data transforms, we can handle in the same data transform by using the parameter passed, right?
ACN
PH
But wouldn't the strategy result be useless if you use data page instead? Or can we populate a data page using the results from the temp page and that will be the one we'll use as a source?
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Yes, we can use the Temp page to populate the Data page results and use the Data page as a source.
Blue Rose Technologies
DE
Hi,
Is the "items" page list is a separate page list which contains always item1 to item5? Is it possible to have a page list property in "results" page list itself which will have filtered data populated for each page in results page list?
ACN
PH
They're coming from a strategy that uses proposition. It's not always the same. Check my reply to Kanap2 for more details.
IN
Hi,
Can you create different pagelists/DataPages for ResultA and ResultB?
Like Item1 and Item2 pagelist
ResultA will get populated using Item1 pagelist/Datapage and specific parameters
ResultB will get populated using Item2 pagelist/Datapage and specific parameters
Hope this helps
Thanks
ACN
PH
Can't. the items pagelist came from a strategy.I can only make one output page on the data flow. It's supposed to be dynamic. where if I were to have more results like resultC and etc.they would be populated based on parameters with the right "items" from the items pagelist.
IN
Hi,
Use different Data pages with parameters and populate the Data pages using data transform
So it will give expected result.
Thanks
Pegasystems Inc.
GB
Hello,
RepeatingDynamicLayout accepts a section. Therefore, can you circumstance the section based on a value?
Secondly, the d_page used to source the drop downs need to have an additional param to filter in which values you can show rather than showing the full list.