Discussion

Dynamic Select Drop Down in a Repeating layout

Hi Folks,

I have a requirement to show the dynamic select drop down in a repeating layout where the drop down values differ for each row in the repeating layout.

For example:
First row contains deductible amount values: 1000, 2000, 3000
Second row contains deductible type values: 1, 2, 3

Since this drop down appears in a repeating layout, can anyone suggest how to hold the dynamic dropdown values dynamically?

Thanks
Veera

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 14, 2010 - 4:49am

on what basis you will decide options in the dynamic select. You have any criteria or id present in each page list record? If yes in dynamic select activity you can access the current step page and based up on the id value you can conditionalize the code and construct the values in dynamic select.

Thanks
Chiranjeevi

December 14, 2010 - 5:49am

The dynamic options are decided based on the values available in the database. For example, database record1 hold values 1000, 2000, 3000 and database record2 hold values 1,2,3 in a string.

Actually, I was not able to store these values in a pagelist because I'm getting error in the "show-page" method step of the activity while trying to display the dropdown values.

December 15, 2010 - 3:05am

Store the string of options which you are getting from data base as a string property value in each record of the page list. In the dynamic select activity you can parse the corresponding record string values construct them in a pxResults of a code-pega-list page and show the page.

Thanks
CHiranjeevi

October 14, 2012 - 4:31pm

Hi Kripal,

I think you need to refresh the section where row repeat is there, as cascading dropdown will not work here as first dropdown is in different section.

If you refresh main section again all the dropdowns will be loaded and it may hit performance.

December 15, 2010 - 4:56am

Here in that case how each row will identify which pxResults page it has to refer to as same activity is being called in the dynamic drop down for each row.I suppose it will hold the last pxResults page values and it might create problem when you refresh the page.

December 21, 2011 - 4:59am

Hi All,

I have a requirement that in the repeating Layout ,where a dropdown is in a separate section (embedded inside the Repeating Layout).When i change anything in this dropdown , the other dropdown beside it has to be Populated using dynamic select . Currently since this dropdown is in a separate section , then ONchange only the section is getting refreshed and the Dynamic select for the other dropdown is not getting triggered. How can we have this ? .Please help. Thanks in Advance .....

December 22, 2011 - 11:13am

http://pdn.pega.com/Devnet/PRPCv5/kb/25898.asp

Reference that for cascading Dynamic select.

Does that answer your question?

January 14, 2012 - 6:05am

We are currently using Pega PRPC v5.5

January 14, 2012 - 11:01pm

Have you given a thought of creating a custom control, use java script to fetch the value of first dynamic control and then pass this value the activity of other dynamic select?

This can then hopefully resolve the issue.

quote:


Originally posted by KRIPALUDASA

Hi All,

I have a requirement that in the repeating Layout ,where a dropdown is in a separate section (embedded inside the Repeating Layout).When i change anything in this dropdown , the other dropdown beside it has to be Populated using dynamic select . Currently since this dropdown is in a separate section , then ONchange only the section is getting refreshed and the Dynamic select for the other dropdown is not getting triggered. How can we have this ? .Please help. Thanks in Advance .....


December 23, 2011 - 1:26pm

Thanks Ammor for Your reply , but that will work only f both the dropdowns are in same section. here both are in different sections so this will not work .

December 23, 2011 - 1:29pm

Hi. What version of PRPC are you using?

October 11, 2012 - 2:31pm

we can write a control for the dynamic select property based on the condition to display the values.we can get the specific page using the code tools.getActive().getParentPage().

November 4, 2013 - 9:41am

Hello,
1) When we use row repeat layout (say 2 columns) and then a Dynamic Select(DS) for each column of the row, where the method to generate the dynamic page for the first column is clipboard Page. On Change of first column, runs an
Activity which sets up the Clipboard Page for the select of second column.
2) The DS of the second column uses the Page generated by step1. Works fine for the first row, but when we add the second row, it messes up the already selected value of the first row. Let us know if anyone is aware of this issue 3) Same issue seen with Repeat Grid control instead of Row Repeat.
Thanks,

September 21, 2015 - 7:30am

hi,

I am also facing same problem.I have tried with row repeat and repeat grid both, but for each case 1st row(with 4 cascading dynamic selects) works fine. But whenever plus sign is clicked, 3rd nd 4th dynamic select values  of 1 st row disappears. And again gets populated based on selection made of 1st and 2nd DS in 2nd row. Is this an indexing problem?