Catch lookup exception
In my form, I have auto lookup for calling rest api service.
sometimes the service return an error, and in the console (F12) I see an error "Failed to Load Data". How can I catch this error in javascript, and ask about it: if this error occures - do something.
Thanks
-
You would have to change the control to not be automatically triggered and instead add JavaScript to call the triggerAutoLookup method yourself and add in your error handling.
https://documentation.agilepoint.com/8000/appbuilder/cloudjsTriggerAutoLookup.html -
the triggerAutoLookup method retrieve "success" response, but in console written an error: "Failed to load data". it means, the triggerAutoLookup method really success - it success to call the interface, but now the interface is faulty, but the method had going away.... I need any eventListener to listen when any response comes from the interface and catch it. Is there listener like this? (My autolookup not binds to a subform, the data is related to primitive text boxes.)
Please sign in to leave a comment.
Comments
2 comments