Page 1 of 1

How to keep track of response from rest service

Posted: Mon Sep 24, 2012 4:05 pm
by bindu

If there are no records in the database returned from Rest service then i want to display the message like no records found message how can i do this?


How to keep track of response from rest service

Posted: Mon Sep 24, 2012 4:10 pm
by maxkatz

How to keep track of response from rest service

Posted: Mon Sep 24, 2012 4:31 pm
by bindu

Can u please provide sample code and screenshot


How to keep track of response from rest service

Posted: Mon Sep 24, 2012 4:57 pm
by maxkatz

Add a Label component, name it 'noData' and uncheck Visible.

Select service instance, then add Success event, then Run Custom JavaScript action.

code
if (data.length == 0){
Tiggzi('noData').text('No data found');
Tiggzi('noData').show();
}
/code


How to keep track of response from rest service

Posted: Mon Sep 24, 2012 5:02 pm
by bindu

Thanks Max. My app is not working on mobile phone the grid is coming as blank. any inputs on this


How to keep track of response from rest service

Posted: Mon Sep 24, 2012 5:03 pm
by bindu

My mobile phone is Samsung galaxy Y having android 2.3.6 version . i have shared my to a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a for colloboration. App name is Monthly schedules


How to keep track of response from rest service

Posted: Mon Sep 24, 2012 5:07 pm
by maxkatz