489
Views
8
Comments
Solved
Add Vertical scroll to the table and dynamically set max record to be visible
Question
Application Type
Reactive

Hello ,

           

 Can you give me an sample which will add vertical scrolling inside a table and the user can select the number of records to be displayed on the page dynamically . 

I'm attaching the sample .oml file .

I'm also attaching an example image of number of records to be selected by the user dynamically .


TableEdit.oap
2022-10-17 06-51-09
Shweta Gedam
Solution

Yes, definitely!! you need to create a local variable named as 'MaxRecords', use this variable in your aggregates 'Max. Records' property as below and when you are going to select a value from dropdown, create a onChange action  which will assign selected value to MaxRecords variable and refresh the your aggregate using 'Refresh Data' element.

In case if you are using web block, then you need to refresh aggregate in 'OnParameterChanged' event by passing MaxRecords as input to the block.


Hope it works, if not, then you will need to send me an OML from your personal environment not of enterprise as i cannot install this in my environment due intellectual rights.

Thanks 

2022-10-17 06-51-09
Shweta Gedam

Hi Rahul,

I'm not able to install your application in my personal environment due to some intellectual property issue, you need to send oml from your personal environment, not of any enterprise but i have shared some solution to you in my below comment.

You can enclose your table only inside a container not ListNavigation and other widgets. and then you can apply overflow-y:auto and some specific height (in my case it is 300px, you can change it) on a container as added in screenshot.


You can check its working from below link:

https://shweta-gedam.outsystemscloud.com/ReactiveDeveloperExercise/Employees?_ts=637432819454151142

Hope this helps! Thanks

2020-10-22 12-15-35
Rahul Gupta

Hello Shweta Gedam ,

Thanks alot you solved my one part of the issue .

Can you also help me in setting Records to be displayed on the page which the user can dynamically set through a drop down list like below .

Thanking You .

Regards ,

Rahul Gupta

2022-10-17 06-51-09
Shweta Gedam
Solution

Yes, definitely!! you need to create a local variable named as 'MaxRecords', use this variable in your aggregates 'Max. Records' property as below and when you are going to select a value from dropdown, create a onChange action  which will assign selected value to MaxRecords variable and refresh the your aggregate using 'Refresh Data' element.

In case if you are using web block, then you need to refresh aggregate in 'OnParameterChanged' event by passing MaxRecords as input to the block.


Hope it works, if not, then you will need to send me an OML from your personal environment not of enterprise as i cannot install this in my environment due intellectual rights.

Thanks 

2020-10-22 12-15-35
Rahul Gupta

Thank You Shweta : )

Regards ,

Rahul Gupta

2020-10-22 12-15-35
Rahul Gupta

 Can you help me in implementing items per page dropdown in the following oml file .  

UploadBulkExcel.oap
2022-10-17 06-51-09
Shweta Gedam

I am getting following issue while installing your oml. Is it the liscensed environment? Please send an oml from personal environment

Thanks :)

2020-10-22 12-15-35
Rahul Gupta

I'm sending you the following OML from my personal environment .

2022-10-17 06-51-09
Shweta Gedam

Hi Rahul,

Check the implementation of Dropdown1OnChange action, to refresh the data by the selected dropdown value.

Hope it helps!! Thanks

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