Page 1 of 1

Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 11:52 am
by Michael Van Dingenen5691893

I have a grid that is automaticly filled with JSON data received from my REST service (used response mapping)
Everything works fine when it returns a result but if the service result returns no data my page keeps on loading (the circle keeps on turning) and nothing happens.

On one of the examples I found out how to set an error message when the query is empty but it doesn't work because the page keeps on loading so he does not show me the page again I only see the turning circle with a grayed out page beneath.

I added the code below on the complete event
if (jqXHR.responseText == "[]"){
Tiggzi("no_records").text("Nothing found");
Tiggzi("no_records").show();
} Image


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 11:58 am
by Maryna Brodina

Hello! Is there ane JS error in console?


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 12:33 pm
by Michael Van Dingenen5691893

I do not receive any errors in the console, when I use the test connection
for the service , the answer is null Image


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 1:31 pm
by Maryna Brodina

Working on it.


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 1:36 pm
by Maryna Brodina

Could you please share your app with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a and tell us steps to reproduce?


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 2:01 pm
by Michael Van Dingenen5691893

Ok I shared the app & send a mail to support with the steps to reproduce
subject mail : New comment: Page keeps loading on empty REST Service Result?


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 2:02 pm
by Maryna Brodina

Thank you! We'll test


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 4:39 pm
by Kateryna Grynko

Hi Michael,

Seems it's our bug.
We don't have a workaround yet.

But if your Rest Service sends empty JavaScript array instead of null the there will be no error in your Tiggzi app.


Page keeps loading on empty REST Service Result?

Posted: Tue Mar 26, 2013 4:56 pm
by Michael Van Dingenen5691893

OK I will change my service that way then, thx for the fast response


Page keeps loading on empty REST Service Result?

Posted: Thu Apr 18, 2013 12:07 pm
by Kateryna Grynko

Hello Michael,
The bug is fixed.