Hi Igor,
Thank you for your reply. I somehow overlooked the "get_states.execute){()};" misspelling.
However, there is a reason that I am trying to assign the "total" localStorage variable value from a query result count rather than assign a static value on page load. I'm working on another pagination app whose number of pages is determined by the 'where' database query they perform, and so the 'total' value needs to be dynamic rather than a static value assigned on page load.
You can see that there is javascript on the where request variable just for testing purposes, which says to return any state that starts with "New", which there are just four total. With 'limit' set to 2 and 'skip' set to 0, I should have two pages of results.
When I request the count as a return variable/value, the query only returns the count. This is why I have a read db service split from the list db service, as a work around. Can you request a count among a query response and have it not be the only thing that is returned?
While I have split out the "total" localStorage variable value assignation with the read_db service, it shows a value of "undefined". Yet when I test the service, it returns a value with no errors. Am I missing something to make the returned value, that tests okay, to map to a local storage variable and to a label text?
Thanks!
Mike