Richard Norte
Posts: 0
Joined: Fri Aug 17, 2012 6:34 pm

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

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."
}
]

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

Richard Norte
Posts: 0
Joined: Fri Aug 17, 2012 6:34 pm

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

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

Richard Norte
Posts: 0
Joined: Fri Aug 17, 2012 6:34 pm

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

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

Richard Norte
Posts: 0
Joined: Fri Aug 17, 2012 6:34 pm

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

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

Design:

Image

Mapping:

Image

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

Richard Norte
Posts: 0
Joined: Fri Aug 17, 2012 6:34 pm

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

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();
}

Return to “Issues”