Number of lines per page for different users

Hello,

I developed a small application for my company and many users regularly use this application.
The number of lines per page for the grid application is 25 by default.

But some users using desktop, other using laptop or netbook with different screen size. So, some users want 30 lines and another want 10 lines, by example.
Users can change the number of lines per page but they must change this number every time they open the application.

So, they ask me to find a solution to not change this number every time (to save the number when it change).

I don’t know how to make that. Maybe with cookies ? But i’m not familiar with cookies and scriptcase.

I need your help please :slight_smile:

Thank you !

Re: Number of lines per page for different users

You can change dynamically with the macro sc_apl_conf on the event onApplicationInit.

For example: sc_apl_conf(“grid_app”, “rows”, “20”);

Re: Number of lines per page for different users

You can use JS to get the screen size of the client as well

screen.height

Regards,
Scott.

Re: Number of lines per page for different users

Thank you for your reply !

I tried the macro sc_apl_conf but it just changes the number of lines per page by default, right ?

I would like the User A can display 20 lines per page, the User B 10 lines per page… without change this number each time they launch the application (25 lines by default at the bottom right of the grid app).

Or i have another idea : to place a frame at the bottom of the group label. In this case, all the users can see the header and group label even they scrool down the page.
It’s possible to create a frame ???

Thank you !

Re: Number of lines per page for different users

Someone can help me to create a frame between the group label and data lines ?

Thank you !