How create entries on a Agenda Meeting list ?

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

How create entries on a Agenda Meeting list ?

Hello Guys!

Would anyone have an example of how to create entries programmatically (Java or JS)  in a list? for example creating entries in a meeting schedule list on site.

I thank anyone who can help me !

4 Replies
Highlighted
Advanced II

Re: How create entries on a Agenda Meeting list ?

Hello.

Using javascript, once you have the parent datalist object reference (the dataList variable in the sample), you can do something like this:

var datalistEntry = dataList.createNode(null, "dl:meetingAgenda");
datalistEntry.properties["dl:meetingAgendaRef"] = "Reference";
datalistEntry.properties["dl:meetingAgendaTime"] = new Date();
datalistEntry.properties["dl:meetingAgendaOwner"] = "Owner";
datalistEntry.save();‍‍‍‍‍‍

That is all

Highlighted
Professional

Re: How create entries on a Agenda Meeting list ?

The answer Douglas provides is correct for JavaScript. If you want to use Java there are multiple ways to do it. One would be if your code is running local to Alfresco, such as in a Behavior or an Action, you can use the Alfresco Foundation API to create a node of type dl:meetingAgenda, just like you would any other node. There are many examples of this.

If your code is running remote to Alfresco you can use CMIS to create data list entries because CMIS 1.1 includes support for "cmis:item" and "dl:meetingAgenda" would be a child type of "cmis:item". There are also many examples of creating nodes and setting properties with CMIS.

Highlighted
Active Member II

Re: How create entries on a Agenda Meeting list ?

Hi Jeff thanks for your help.

Highlighted
Active Member II

Re: How create entries on a Agenda Meeting list ?

Valeu Douglas, vou estudar sua sugestão.

abs.