Joe Walsh
Posts: 0
Joined: Thu Jul 12, 2012 12:21 am

REST service tests OK but fails when app is tested

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service tests OK but fails when app is tested

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

Joe Walsh
Posts: 0
Joined: Thu Jul 12, 2012 12:21 am

REST service tests OK but fails when app is tested

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service tests OK but fails when app is tested

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

Joe Walsh
Posts: 0
Joined: Thu Jul 12, 2012 12:21 am

REST service tests OK but fails when app is tested

Here's the images: Image
Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service tests OK but fails when app is tested

You need to add:

return value;

otherwise, nothing is returned.

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

Joe Walsh
Posts: 0
Joined: Thu Jul 12, 2012 12:21 am

REST service tests OK but fails when app is tested

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service tests OK but fails when app is tested

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.

Joe Walsh
Posts: 0
Joined: Thu Jul 12, 2012 12:21 am

REST service tests OK but fails when app is tested

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

Return to “Issues”