Page 1 of 1

Error messages

Posted: Wed Mar 25, 2015 12:45 am
by juricin

Hi,

When there is an error the back-end returns a non 2xx status code and the response contains a "message" field. The "message" field is returned for all queries for all back-end errors.

See attached image

Image

My question is how do I remove the Login.html from the error message? I only want it to display the "message".

Thanks, Ante


Error messages

Posted: Wed Mar 25, 2015 1:35 am
by She

Hi juricin,

Do you try to use "POPUP" instead of alert message?

If not, try to use popup open when the error shows.

for example i have a push message notification:

instead of using this code:

alert (data.aps.alert);

i used in event push notification open popup and there's a label named "lblAM"
then in another event push notification run javascript i run this code:
Appery('lblAM').text(data.aps.alert);

Goodluck