Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

AJS.RestfulTable.Events.SERVER_ERROR does not work

JiaxinWang
Contributor
September 28, 2021

I want to give an alert to the user if the loading error occurs to restfulTable. I code as the document told. But It doesn't work.  Thanks a lot.

Below is the code:

 
new AJS.RestfulTable({
el: jQuery("#project-table"),
resources: {
all: almPluginContext.almAdminBaseUrl + "projects"
},
columns: [
{id: "serverName", header: "Server Name"},
{id: "jiraProject", header: "Jira Project"},
],

noEntriesMsg: "No entity mapping is defined.",
loadingMsg: "Loading ..."
});
AJS.$(document).bind(AJS.RestfulTable.Events.SERVER_ERROR, function () {
alert("server error!");微信图片_20210928162134.png

0 answers

Suggest an answer

Log in or Sign up to answer