Page 2 of 3

Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 2:51 am
by Richard Norte

Sure thing. Here you go. Thank you.

[
{
"Hours": 2,
"Customer": "KJ",
"id": "5075be70e4b066b4d7b41cb2",
"Date": "10/10/2012",
"createdAt": "2012-10-10 11:29:04.311",
"updatedAt": "2012-10-15 14:39:44.122",
"Reported": true,
"Notes": "Notes: Add TechFlashes Rollup to Home Page."
},
{
"Hours": 1,
"Customer": "KJ",
"id": "5075beb3e4b066b4d7b41cb3",
"Date": "10/11/2012",
"createdAt": "2012-10-10 11:30:11.221",
"updatedAt": "2012-10-12 20:39:45.507",
"Reported": false,
"Notes": "Notes: Fix issue with Blog Posting Ribbon Bar and create user documentation that outlines the functionality."
},
{
"Hours": 2,
"Customer": "KJ",
"id": "5078e060e4b0f75e18e17774",
"Date": "10/12/2012",
"createdAt": "2012-10-12 20:30:40.633",
"_updatedAt": "2012-10-12 20:39:49.121",
"Reported": false,
"Notes": "Notes: Design and implement custom menu script and add script to 3 blog sites quick launch menus. Remove SharePoint default quick launch listing from one aspx page."
}
]


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 8:04 am
by Maryna Brodina

Hello! Could you share your App test link? http://help.gotiggr.com/documentation...


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 8:34 am
by Maryna Brodina

Could you clarify what do you want to see when the value is false?


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 1:21 pm
by Richard Norte

Yes, it is already shared with support. Do I need o share with another ID?


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 1:23 pm
by Richard Norte

I want to see nothing when the reported value is false and I want to see the check icon when the reported value is true.


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 1:43 pm
by Maryna Brodina

We created service using your JSON responce (just replaced false with true in the last case) and here is what we get http://project.tiggzi.com/mobile-fram...:
1) true - icon
2) false - nothing
3) false - icon


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 1:45 pm
by Maryna Brodina

No, you don't need to do this. Please clarify the project name.


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 3:59 pm
by Richard Norte

Good news, so it sounds like you didn't change anything? My JSON works for your app but not mine? Can you please share your setup steps so I can replicate your success. Thank you.


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 9:30 pm
by maxkatz

Design:

Image

Mapping:

Image

JavaScript code for 'Visible' property:
code
if (value == true)
element.show();
else
element.hide();
/code


Display an image icon instead of the returned value from the database collection for a given field.

Posted: Tue Oct 16, 2012 10:35 pm
by Richard Norte

OK, I see now you are doing the javascript on the visible property of the image element. I was not doing that. I have correct this. However, it looks like the way I am referencing my "value" and "element" is not working. This is what I'm doing. Do you see a syntax error? Thank you for your help and patience. I'm almost there...

var isReported = Tiggr ('Reported').text();

if (isReported == true){
Tiggr ('mobileimage1').show();
}
else {
Tiggr ('mobileimage1').hide();
}