cancel
Showing results for 
Search instead for 
Did you mean: 

POPUP IN ALFRESCO

maddy
Champ in-the-making
Champ in-the-making
hay anyone let me know….

I have to show one metadata properties in popup while updation it is an requirement because it is changing at each update. anyone help me how we show popup on pressing OK button while updating?
5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
You can create custom action and associate it with form.
If you observe below action it is associated with "onActionFormDialog" javascript function which is responsible for popups in alfresco.


  <!– Execute Script –>
         <action id="document-execute-script" type="javascript" label="actions.document.execute-script">
            <param name="function">onActionFormDialog</param>
            <!– Additional parameters for onFormDialog function  –>
            <param name="itemKind">action</param>
            <param name="itemId">script</param>
            <param name="mode">create</param>
            <param name="destination">{node.nodeRef}</param>
            <param name="successMessage">message.execute-script.success</param>
            <param name="failureMessage">message.execute-script.failure</param>
         </action>


maddy
Champ in-the-making
Champ in-the-making
Where we can define this action tag and what configuration required for this.and where we call the java script?????

mitpatoliya
Star Collaborator
Star Collaborator
Create custom action in alfresco
Define that action and related form in share-config-custom.xml
Include that action in your ftl.

No need to call javascript It is alfresco inbuilt javascript function.

maddy
Champ in-the-making
Champ in-the-making
this custom action is created in  this file or any other????

web-client/config/alfresco/web-client-config-actions.xml

mitpatoliya
Star Collaborator
Star Collaborator
For alfresco share custom actions are configured using share-config-custom.xml