Page 2 of 2

REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:14 pm
by Joe Walsh

No, I haven't yet. I'll post back here if I figure it out.


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:20 pm
by maxkatz

Put the alert(..) back.. we'll try it. Or create a second button with the alert.


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:26 pm
by Joe Walsh

I put the alert in the custom javascript for the request mapping of the IPAddress parameter. I haven't tried sticking it with a button.


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:28 pm
by maxkatz

Can you show where exactly where you put the alert (with a screen shot)?


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:31 pm
by Joe Walsh

Here's the images: Image
Image


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:33 pm
by maxkatz

You need to add:

return value;

otherwise, nothing is returned.

http://help.tiggzi.com/documentation/...


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:37 pm
by Joe Walsh

Is the return statement there by default? I thought I could remove everything from the custom javascript and then it would behave like I never touched it.
In any case, you've fixed the problem for me. Thanks.


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:48 pm
by maxkatz

Yes, if the function is empty then it will do a return of the value by default. But if you write any code, I think you need to have a return statement. I need to double check, but I don't there there is a default return in such case.


REST service tests OK but fails when app is tested

Posted: Thu Jul 12, 2012 11:50 pm
by Joe Walsh

I see. That will be good to know for the future. Thanks again for your help.