Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Mapping to a Filtered data

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

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Mapping to a Filtered data

Super. You guys rock!

Return to “Issues”