03-12-2018 03:21 AM
Hi,
i have added button on my form in order to delete a document :
but when i click it , i have the following issue "remove function not found"
This is the javascript code :
I use for that : remove | Alfresco Documentation
What is missing ?
Thank's in advance
03-12-2018 04:15 AM
Have you tried with document.remove()?
03-12-2018 04:18 AM
It depends on which type of object you are calling this method. document.nodeRef will return the string object so it will throw an error.
document.remove() should do the trick , but still as i said it depends on the type of object.
03-12-2018 04:44 AM
Root objects | Alfresco Documentation
"document" is used to be a ScriptNode object, ready to accept that remove method.
03-12-2018 07:11 AM
Thank you,
i would like to delete pdf document.
I suppose document.remove() should work because, now, i got a message about acces
what is the right way to allow this operation ?
Is there a specific method to use before document.remove() or is it in user profil ?
Explore our Alfresco products with the links below. Use labels to filter content by product module.