Michael Van Dingenen5691893
Posts: 0
Joined: Tue Mar 26, 2013 11:52 am

Page keeps loading on empty REST Service Result?

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

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

Page keeps loading on empty REST Service Result?

Hello! Is there ane JS error in console?

Michael Van Dingenen5691893
Posts: 0
Joined: Tue Mar 26, 2013 11:52 am

Page keeps loading on empty REST Service Result?

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

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

Page keeps loading on empty REST Service Result?

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?

Michael Van Dingenen5691893
Posts: 0
Joined: Tue Mar 26, 2013 11:52 am

Page keeps loading on empty REST Service Result?

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?

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

Page keeps loading on empty REST Service Result?

Thank you! We'll test

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

Page keeps loading on empty REST Service Result?

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.

Michael Van Dingenen5691893
Posts: 0
Joined: Tue Mar 26, 2013 11:52 am

Page keeps loading on empty REST Service Result?

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

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

Page keeps loading on empty REST Service Result?

Hello Michael,
The bug is fixed.

Return to “Issues”