How to display a message when rest service returns no rows (... or one row)
This is probably very basic but I'm not seeing it anywhere. I have tried a couple things, for example, mapping a field which will always be present on every record to a local storage variable, and running this javascript on complete:
if (!localStorage.getItem('RecordID'))
{
Appery('error').text('No records meeting criteria found.');
}
No worky. (Actually I think I saw it work once but never again which is even stranger).
Then my next, related question will be, how can I do something conditionally if only one row is returned (for example, I won't have to prompt user to select from a list of options I can skip ahead to next screen)