cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Community 5.2 Data list

anandhan
Star Contributor
Star Contributor

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 10

kalpesh_c2
Star Collaborator
Star Collaborator

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

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
World-Class Innovator
World-Class Innovator

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
Star Contributor
Star Contributor

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
World-Class Innovator
World-Class Innovator

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
Star Contributor
Star Contributor

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

jpotts
World-Class Innovator
World-Class Innovator

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

anandhan
Star Contributor
Star Contributor

I was asking about Data list.

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

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