Page 2 of 2

Mapping to a Filtered data

Posted: Fri Mar 22, 2013 9:29 am
by Kateryna Grynko

HI Leonardo,

  1. 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.

  2. 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();
    }/code

  3. See Tiggzi docs on docs.tiggzi.com


Mapping to a Filtered data

Posted: Fri Mar 22, 2013 12:24 pm
by leonardo

Super. You guys rock!