Hi,
What variable contains the total records found from report control query?
Thanks,
Hi,
What variable contains the total records found from report control query?
Thanks,
Hello Adrian,
Probably we must use here a bit of Javascript code, in order to count the visible Report's rows, for example, the below one:
The below do the same using jQuery, since it's available too:
Hello Adrian,
I understand what you need, however, certainly the Success event of the Report control is fired when the Data has been loaded, but don't work when we query the Report's. So, trying to find a possible workarond, maybe what we need to do is to query the Data variable by hand, in the client side or in the server side, then we can know the records of the Data variable before set it in the Report's control.
Hello Amin,
I am not sure if can understand. First of all, probably it's better than the server take care about the data processing, and feed the app in the right way. On the other hand, in what context do you want to use SQL queries in the client side? That is, are you talking about to use something like the IndexedDB technology?
Hello Amin,
But, unfortuantelly, something like that is not possible. The Report control nor the Data variable (which is only an array) support something like SQL, Amin. In my honest opinion, I think you no need to worry about the server SQL complexity... except if you find some unexpected result, in which you must try to optimize the queries. Personally, I am developing certain app which have amazing SQL queries (to me, since I am not an expert in SQL) in the server side, and everything works fine.
Hello Amin,
Honestly I think than the server is the best to do this things. But, anyway, we can't use SQL in Javascript "as is". We can use the "IndexedDB" database, which offer SQL queries, but, outside that context, we can't use SQL to deal with data. But even if possible, I insist that the server can be better for this. Maybe the "IndexedDB" can be an option, that is, you can feed the database, and then query it in order to conform a Report's Data variable. But I am not sure that this is a good idea... if the server can do that.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.