How to display a message through a javascript in alfresco share?

cancel
Showing results for 
Search instead for 
Did you mean: 
renato_fritola
Active Member II

How to display a message through a javascript in alfresco share?

I created a javascript to customize some actions and I need, in some cases, to display a treated message on screen. How can I do this ?

3 Replies
krutik_jayswal
Senior Member II

Re: How to display a message through a javascript in alfresco share?

Below is sample code for same.

Alfresco.util.PopupManager.displayPrompt(
{
    title:"Property Exists!",
    text: "You can not property which allready exists"
});

There is also and dialog available for ok cancel type of prompt.

renato_fritola
Active Member II

Re: How to display a message through a javascript in alfresco share?

Hi, first thank you for the feedback. I added this code into a .js file for testing and include it as a folder rule to always run when updating a document but it does not work.

Is there a prerequisite for it to work? some addon?

cesarista
Advanced

Re: How to display a message through a javascript in alfresco share?

Hi Renato,

The given code does not refer to Alfresco Javascript API (which is server side). You can not do this with Javascript API.

Regards.

--C.