Page 2 of 3

Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:22 pm
by maxkatz

Go to screen_device_profile_test page, select the service instance, open Events tab, there is custom JavaScript that has the error.


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:27 pm
by Zak Crawford

that's the wrong page, sorry, my initial link was wrong, i've fixed it now, the page causing the error is of the same name without _test


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:41 pm
by maxkatz

What's a valid id for device?

I got this response:

Image


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:44 pm
by Zak Crawford

10001
That error response is still valid JSON, so it should cause any errors on the tiggzi side of things


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 7:48 pm
by maxkatz

OK, should be working. I removed the service instance, added it back and mapped again.


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 8:07 pm
by Zak Crawford

Thanks,
Do you have any idea why it wasn't working?


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 8:11 pm
by maxkatz

I'm not sure.. something happened with code generation. Removing and adding back helped. If you experience this again, do let us know.


Invoking Rest service causing page content to disappear

Posted: Thu Oct 04, 2012 5:29 pm
by Tim5052033

Hi Max,

I'm experiencing a similar issue - even if I remove all JS.

The new page loads for an instant then is immediately greyed out and doesn't return. No errors are reported and when I inspect the test/rendered iframe code it appears to be a previous page (despite the toPage being correct).

Any ideas?

Thanks,

Tim
Ps: screenshot left out - the full viewport is grey :)


Invoking Rest service causing page content to disappear

Posted: Thu Oct 04, 2012 5:35 pm
by maxkatz

Try removing the service from the page. Save. Run the app. Add the service back.


Invoking Rest service causing page content to disappear

Posted: Thu Oct 04, 2012 5:39 pm
by Tim5052033

Works perfectly. Thanks!