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

[ISSSUE] Get the number of selected records in result window #87

Open
guanjiwang2016 opened this issue Jun 27, 2017 · 0 comments
Open

Comments

@guanjiwang2016
Copy link

guanjiwang2016 commented Jun 27, 2017

Hello,
I have met an issue which is as follows when I want to add limits and alerts for download plugin (server service) to my datasets:
1. Open our sitools2 instance: http://idoc-medoc-test.ias.u-psud.fr.
2. Select SOHO query form in the 'Search forms' menu bar.
3. Click 'Search' and get the result window.
4. If I select all records, the alert/error window doesn't come out while I select less than all records, the alert window appears.

I have already set the parameters in client-admin -> Dataset services, as the photo captured:

selection_321

  • According to my search, the 'checkResourceParameters' event check the parameters by the variable - nbRows
  • When all records selected by clicking the checkbox on the left of 'download' column, the nbRows only equals the number of records of a single grid which is 10.
  • But when we select the records manually, the 'this.grid.getSelectionModel().getCount()' works well for nbRows;
  • And in the Extjs4+, we can get the total number of grid store by 'this.grid.getStore().getTotalCount()' but not 'this.grid.getStore().totalLength'.
  • The concerned js is ~/client-user-3.0/app/utils/ServerServiceUtils.js.

Thank you for your help,
regards,
Guanji

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

No branches or pull requests

1 participant