cancel
Showing results for 
Search instead for 
Did you mean: 

generating report

jeyaa
Champ in-the-making
Champ in-the-making
Hi all,
I want to create a report which should give the details about the contents uploaded into alfresco for the last 7 days starting from today. That report should contain
Date, Content-type, total

total is that how many content is being added of the corresponding type.

So I have no idea how to proceed. Please lemme know the ways to proceed. Its Urgent.

Thanks.
4 REPLIES 4

iblanco
Confirmed Champ
Confirmed Champ
I would make a JavaScript that searches the content that meets your criteria (with cm:created you can obtain when a content was created). 

Each element will have a a mimetype and size property so just create a javascript array by mimetype and sum up the sizes..

Check this link if you need help with the search.

jeyaa
Champ in-the-making
Champ in-the-making
Thanks for ur reply iblanco ,
Will try it out and post the result.

Thanks Once again.

jeyaa
Champ in-the-making
Champ in-the-making
I have tried out like this,

search.luceneSearch("@cm\\:created:\"[2009\-11\-03T00:00:00 TO 2010\-12\-06T00:00:00]\"");
But its retriving only the contents created today…..

What will be exact query? What mistake I did in the above one??

iblanco
Confirmed Champ
Confirmed Champ
Not sure but… I think quotes are not neccesarry before the [start TO end] expresion. Try this:

search.luceneSearch("@cm\\:created:[2009\-11\-03T00:00:00 TO 2010\-12\-06T00:00:00]");