Skip to content

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

Description

@guanjiwang2016

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions