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.

@TanyaS58

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.

Hi @TanyaS58 , Do you want to create data or display data based upon this drop-down value?

@SohamM95 yes number of rows added in the table

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

@KavyaKumariYegireddi just display data based on the dropdown value

@TanyaS58

So you can limit the append on the value of the property in the dropdown as I mentioned above.