Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Common Wealth Bank Of Australia
IN
Last activity: 7 Jun 2024 4:44 EDT
We have dropdown with 1-9 values now if i select value as 1 the table should populate with 1 entry and if i select 5 the table should populate with 5 entries how to do this
there is a dropdown with 1-9 values now if i select value as 1 the table should populate with 1 entry and if i select 5 the table should populate with 5 entries how to do this.
Bascially depending on the number there should be entry added in the table.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 7 Jun 2024 4:44 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-06/bf092008-2dc4-4a8e-b582-f8d3a45740d8_0.jpg?h=c458582b&itok=gBcaKB59)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-06/bf092008-2dc4-4a8e-b582-f8d3a45740d8_0.jpg?h=c458582b&itok=gBcaKB59)
Eclatprime Digital Private Limited
IN
Hi @TanyaS58,
Give pagelist property as a source to the Table.(eg: Customer Details)
As you have created a dropdown property with 1-9,
Create an action set with onchange of dropdown value refresh the section.
create an activity:
Append the rows by looping the pagelist with dropdown value as you given.
For your reference, I am giving the snapshots
1.Created dropdown field and table
2.create actionset on dropdown property
3.Activity for append the rows in table as dropdown value
Hi @TanyaS58,
Give pagelist property as a source to the Table.(eg: Customer Details)
As you have created a dropdown property with 1-9,
Create an action set with onchange of dropdown value refresh the section.
create an activity:
Append the rows by looping the pagelist with dropdown value as you given.
For your reference, I am giving the snapshots
1.Created dropdown field and table
2.create actionset on dropdown property
3.Activity for append the rows in table as dropdown value
4.Testing by giving 4 in dropdown value to add 4 rows in table
Hope this helps you
Thank you
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-03/0616cffa-1530-4cde-abff-fac83e4635bf.jpg?h=658174c2&itok=sY2fYdoO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-03/0616cffa-1530-4cde-abff-fac83e4635bf.jpg?h=658174c2&itok=sY2fYdoO)
Maantic Inc
IN
What do you mean by number of entries? Number of rows added in the table? Then on change of the dropdown, run a DT where keep the value of the dropdown in a param. Then loop through the table to add values but keep a when rule on the loop where you check the (param.pyForEachCount or .pxListSubscript)<=param that you saved.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-03/0616cffa-1530-4cde-abff-fac83e4635bf.jpg?h=658174c2&itok=sY2fYdoO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-03/0616cffa-1530-4cde-abff-fac83e4635bf.jpg?h=658174c2&itok=sY2fYdoO)
Maantic Inc
IN
So you can limit the append on the value of the property in the dropdown as I mentioned above.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Eclatprime Digital Private Limited
AU
Hi @TanyaS58, Do you want to create data or display data based upon this drop-down value?
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Common Wealth Bank Of Australia
IN
@KavyaKumariYegireddi just display data based on the dropdown value
Accepted Solution
Updated: 7 Jun 2024 4:44 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-06/bf092008-2dc4-4a8e-b582-f8d3a45740d8_0.jpg?h=c458582b&itok=gBcaKB59)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-06/bf092008-2dc4-4a8e-b582-f8d3a45740d8_0.jpg?h=c458582b&itok=gBcaKB59)
Eclatprime Digital Private Limited
IN
Hi @TanyaS58,
Give pagelist property as a source to the Table.(eg: Customer Details)
As you have created a dropdown property with 1-9,
Create an action set with onchange of dropdown value refresh the section.
create an activity:
Append the rows by looping the pagelist with dropdown value as you given.
For your reference, I am giving the snapshots
1.Created dropdown field and table
2.create actionset on dropdown property
3.Activity for append the rows in table as dropdown value
Hi @TanyaS58,
Give pagelist property as a source to the Table.(eg: Customer Details)
As you have created a dropdown property with 1-9,
Create an action set with onchange of dropdown value refresh the section.
create an activity:
Append the rows by looping the pagelist with dropdown value as you given.
For your reference, I am giving the snapshots
1.Created dropdown field and table
2.create actionset on dropdown property
3.Activity for append the rows in table as dropdown value
4.Testing by giving 4 in dropdown value to add 4 rows in table
Hope this helps you
Thank you