Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default "Rows per page" for Action table #380

Open
pgrill79 opened this issue Jun 16, 2024 · 2 comments
Open

Set default "Rows per page" for Action table #380

pgrill79 opened this issue Jun 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pgrill79
Copy link

We use many Action tables and Tables and most of the time we want to show more than 10 rows per page (which is the default).

So it would be great to have the possiblity to set a default "Rows per page" for each action table or that this value is stored permanently.

@aeberhart aeberhart self-assigned this Jun 17, 2024
@aeberhart aeberhart added the enhancement New feature or request label Jun 17, 2024
@aeberhart aeberhart added this to the 5.2 milestone Jun 17, 2024
@aeberhart
Copy link
Contributor

The sort order, filters and rows to display are stored in the local storage (visible in the dev console / Application). A sample key is:

RaStore.preferences.$gitStatus().{"type":type, "path":path, "diff": diff}5.listParams = 
{"filterValues":{},"sort":{"field":"diff","order":"ASC"},"perPage":50}

As the key, we chose the jsonata expression appended with the result length. This reason for that is to make sure the table is updated when an entry is deleted.

This has the negative side effect, that the settings are lost if the row count changes for other reasons.

We need to come up with another way of handling updates while not including the result count in the resource key

@aeberhart
Copy link
Contributor

guess this issue #363 is also related

both tables get the ConstDataProvider with the same ID ($ call("fn")). The fact that they have different arguments makes no difference when computing the resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants