DMXzone App Connect Support Product Page

Answered

Ok seriously how to trigger unsuccessful event for Server Connect using App Connect?

Asked 06 Apr 2017 08:26:42
1
has this question
06 Apr 2017 08:26:42 Firdaus Rohman posted:
I want to trigger notification for unsuccessful data entry and / or upload.

400 (Bad Request)

Replies

Replied 06 Apr 2017 08:32:46
06 Apr 2017 08:32:46 Teodor Kuduschiev replied:
Hello Firdaus,
The unsuccessful event triggers when the server action does not run successfully ... i.e. when there is an error on upload or on insert/update ...
Replied 06 Apr 2017 08:46:49
06 Apr 2017 08:46:49 Firdaus Rohman replied:
So can I execute something when there's 400 (Bad Request)? If so, how?

For example when file size exceeds limit allowed, the file will not upload. I can disable submit button when file size exceeds limit allowed but what I want to achieve in this case is notification and other action when file is not uploaded. I've tried; Error, Forbidden, Aboard. No trigger.
Replied 06 Apr 2017 09:01:22
06 Apr 2017 09:01:22 Teodor Kuduschiev replied:
How exactly do you get the 400 (Bad Request)? Is the server action returning it or what?
Replied 06 Apr 2017 09:07:56
06 Apr 2017 09:07:56 Firdaus Rohman replied:
When I upload size exceeds php limitation. Error on browser console.

*I will not asking this if I can use server validation Files > Max Files... or can I?
Replied 06 Apr 2017 09:13:43
06 Apr 2017 09:13:43 Teodor Kuduschiev replied:
Please provide a link to your page with instructions how to trigger the error.
Replied 06 Apr 2017 09:38:49
06 Apr 2017 09:38:49 Teodor Kuduschiev replied:
Update on the topic. The Bad request 400 status does not trigger the error/unsuccessful event but the invalid event. It appears we did not include that in the UI, so you can just change it in the code from onerror to oninvalid and we will add this event in the UI, in the next week's update.
Replied 06 Apr 2017 09:49:46
06 Apr 2017 09:49:46 Firdaus Rohman replied:
Thanks Teodor!

That answer is what I need. Achieved what I actually wanted. Cheers!
Replied 05 Dec 2017 06:43:10
05 Dec 2017 06:43:10 Firdaus Rohman replied:
Hello Teodor.

When will you add oninvalid event in the UI? I recently need to use this event again and just realised it's still not available in the UI. Please update.

Reply to this topic