How to change the no of rows displayed in a List using dropdown?
Question
Application Type
Reactive

Hi Team,

I need to display only 10, 20.. and so on data from a list using a dropdown option. How to make it possible and what must be the logic behind it?

Solution

Please follow the below steps - 

  1. Create one Static Entity with the Options in Records that you want to show in Dropdown  
  2. Assign the Label to Dropdown List and Same as Value
  3. Create one Client Action to Refresh Data onDropDownChange


Attached is the OML for reference. 

ForumHelpTableScreen.oml

Hi Aditya,

  • in the dropdown, assign a local variable NumberRows
  • use the local variable NumberRows as the Max. Records of the aggregate with the List values
  • when the user changes the dropdown value, refresh the aggregate


What will be there in the Dropdown List Option?

Please look into this sample - https://personal-9qwkrkgl.outsystemscloud.com/ForumHelp/Dropdown?_ts=637583147141213876


The number you enter in Textbox the Results appear in Dropdown accordingly. Is this what you want? 

Not actually this but close to it. Just take a Table in list form and it will display all the data at first, then if user selects 10 from the dropdown then only 10 results should appear, if selects 20, then 20 results should appear... and so on

You can create a static entity with the records and manage there the records you want to display in the dropdown. Or build it dinamically with a data action assigning a list of integers.

Solution

Please follow the below steps - 

  1. Create one Static Entity with the Options in Records that you want to show in Dropdown  
  2. Assign the Label to Dropdown List and Same as Value
  3. Create one Client Action to Refresh Data onDropDownChange


Attached is the OML for reference. 

ForumHelpTableScreen.oml

Aditya, have this one solved your problem?

Hello Aditya

It would be better if you share the questions in detail way. So, we can help in appropriate way. Your statement should help to understand what exactly do you need. 


Please confirm: 

  1. Do you exactly want to show the Max Records? or
  2.  You want to control the values displayed in Dropdown with a define series? So, if Dropdown has counting from 1 to 100, you want to show 10, 20, 30, ...., 100. These values only when someone click dropdown! 
  3. Or if the case is different, Please share an appropriate detail 

Yes the 2nd point. When user selects 10, i want to show 1st 10 items, when users selects 20, want to show 20 items and so on..

Please follow what Jose has suggested. Let  us know if you face any challenge :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.