I am trying to invoke a custom java backed webscript from a button I created in a custom widget js file.
here is my code :
var id=5
var myButton = new AlfButton({
label: "Supprimer",
onClick: function(){
var url = Alfresco.constants.PROXY_URI + "test/delete?id="+id;
this.serviceXhr({url : url,
method: "GET"});
}
});
domConstruct.place(myButton.domNode,"id");
the button is being displayed and when I try a simple alert message, it works good.
but when I try the previous code, nothing happens. Any ideas ?
Hope this helps: alfresco-add-menu-sample/custom-button-sharedfiles.js at master · angelborroy/alfresco-add-menu-samp...
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.