Alfresco Community 5.2 Data list

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

Alfresco Community 5.2 Data list

Am looking forward to customize a Data-list, 

1. Can i able to trigger an custom event(task i want to perform) before saving list row item save event? how should i do it?

2.Is there a way to update a list pro-grammatically ? I don't find a REST API!

Kindly help me out on understanding the CRUD event flow of a data list.

10 Replies
kalpesh_c2
Senior Member

Re: Alfresco Community 5.2 Data list

Hi, Anandhan S


Please refer this Behaviors/Policies | Alfresco Documentation  to create a custom behavior
After that on

beforeCreateNode event of org.alfresco.repo.node.NodeServicePolicies

check node type with your custom data list type if matches then perform your operations .

Thanks,
Kalpesh,
ContCentric

anandhan
Active Member II

Re: Alfresco Community 5.2 Data list

Hey that was really helpful. It opened up a new paradigm.

How can find the node Id of my list ? or is it my understanding of node concept is incorrect?

Kindly Correct me.

jpotts
Professional

Re: Alfresco Community 5.2 Data list

I agree that you should look at Behaviors to understand how to fire code when saving data list items.

Regarding working with data lists programmatically the first step is to realize that an item in a data list is simply a node in the repository like any other. That means:

1. They can be viewed in the node browser, which is really helpful to understand how they are structured.

2. They can be created, updated, and deleted through any of the usual APIs you might use to work with folders and documents, and that includes CMIS.

3. They can be hooked with behaviors as has already been mentioned.

anandhan
Active Member II

Re: Alfresco Community 5.2 Data list

Thank you ‌. Now i get it. I could able to see the node structures.

But am finding issues with Query parameter/JSON object for querying or to do any other CURD operation with a node.

jpotts
Professional

Re: Alfresco Community 5.2 Data list

Good, I'm glad that helped.

If you are having issues with query parameters or queries I suggest you start a new topic with as much detail as possible.

anandhan
Active Member II

Re: Alfresco Community 5.2 Data list

Will i be able to create Custom Datalist in Alftresco Communiy 5.2 edition?

jpotts
Professional

Re: Alfresco Community 5.2 Data list

Yes, nothing has changed with regards to custom dashlets in 5.2 Community Edition.

anandhan
Active Member II

Re: Alfresco Community 5.2 Data list

I was asking about Data list.

What ever tutorial i follow,i end with site not available error.

anandhan
Active Member II

Re: Alfresco Community 5.2 Data list

what would be exact target location to place the context file(-context.xml),if i place it in <installation>\alfresco-community\tomcat\shared\classes\alfresco\extension my site is inaccessible. 
Am using alfresco community 5.2