totalCount error, number of items: 0 vs 1

Hi!

I´ve an error that I cannt resolve:

For this case, I load a grid with the data from my database. Then, I create a filter, and the error occurs when selecting a value that does not exist in the database for a column.

The query to the database returns 0 element and an empty list. But it seems that a record is loaded at null.


The code is:





And the ER answer:


Any idea where I could look?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Pablo Ramos Clemente
    Is that query entity rule used in a lot of other places already? If not, I always suggest making a query entity rule optionally accept incoming pagingInfo data, and the way I do it is, when outside paging info was passed in, the expression rule returns the entire datasubset. This makes much more sense than querying ALL data, saving it in memory on the form, then paging over that on-form. Let me know if you need a recipe or something and I can try to find a generic example of what I mean.
Children
No Data