Kevin
Posts: 0
Joined: Sun Oct 07, 2012 7:58 pm

Display service response error message on application as an alert.

Tried mapping to label but still can't get the error message to show.

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

Display service response error message on application as an alert.

Can you share the app with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a? Tell me exactly how to get a valid response and invalid response.

Kevin
Posts: 0
Joined: Sun Oct 07, 2012 7:58 pm

Display service response error message on application as an alert.

I've shared Shared.

From Tiggzi

  1. Go to the signupScreen.

  2. Click on Edit parsesignup service.

  3. Test Connection and enter some info on the username and password parameter values.Try a username like temeke which is already registered to get an invalid response.

    From App

  4. Run app

  5. Click on create account button.

  6. Try filling in the registration form. Try a username like temeke which is already registered to get an invalid response.

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

Display service response error message on application as an alert.

I'm not sure why direct mapping is not working, it should. I'll have to test it more.

I added an error event with this code and it works:
code
var errorText = JSON.parse(jqXHR.responseText);
Tiggzi('errorlabel').text(errorText.error);
/code

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Display service response error message on application as an alert.

I am having same issue I want to get error to appear but cannot. What am I doing wrong? I have tried both scripts of java provided. Image Imageinline.png?1384736912[/img] [/url] Image

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

Display service response error message on application as an alert.

Try Complete event - to check if the service is invoked.

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Display service response error message on application as an alert.

Tried changing it to complete event, it still does not work. I am testing the app in the appery test page, would that cause an issue?

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

Display service response error message on application as an alert.

What I meant, the complete event is always invoke -after a successful invocation or an error. Did you add any debugging and saw the event being fired?

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Display service response error message on application as an alert.

I ran in console the event is being fired. The event in this case is "not found". I have that event mapped and have tried mapping it to the local resource "error" and then adding the event to run j/s, but still no luck. I have also attached a screen shot for all the possible errors, I have added them to rest service just only mapped one but i am firing the event for the one that is mapped. Image Imageinline.png?1384747530[/img] [/url]

Return to “Issues”