HI Leonardo,
Mapping is for displaying data got from Rest Service or device (Geolocation, Contacts etc). Data source can have different parameters: refresh rate in Geolocation, search word in Twitter Search. To send this data from Tiggzi to Rest Service you can use Request parameters and mapping.
You can count displayed data using JavaScript. for example:
codeif(value.indexOf(localStorage.getItem("sid")) === -1) {
element.closest("table").hide();
}
else {
foundItems ++;
}
return value;/code
foundItems variable should be set to null before invoking Rest Service.
Then on Rest Service Success event, add Run JavaScript action with the following code to show/hide label:
codeif(foundItems == 0) {
Tiggzi("noItemsLabel").show();
}
else {
Tiggzi("noItemsLabel").hide();
}/codeSee Tiggzi docs on docs.tiggzi.com