Hi,
after I success create few datalist in alfresco with much help of guys from ContCentric, now interesting me how I can import excel sheets in datalist? Any idea?
I have about 200-1000 rows to prescribe in one table, C/P one by one. I have about 10 tables. Every table have 5-10 colums.
Thx
Tomislav
I'm afraid there is no such function available as far as I know.
I think you can customize a java backed webscript to implement your requirement.
Your java class can inherit from org.alfresco.repo.web.scripts.DeclarativeSpreadsheetWebScript,and you can use webscript /slingshot/datalists/list/site/{site}/{container}/{list} as an example on how to implement it.
I would use Groovy, Python, or Java to do this. All of those languages have good libraries for parsing CSV files, which can easily be created from a spreadsheet. And they all work well with CMIS which can create data lists and data list items.
Hi Tomo,
Please look at this documentation that provide a way through alfresco JAVA API to put value in the datalist. You can modify the input to excel/csv file for your case and as suggested by Jeff Potts parse the csv and then insert the value in the datalist.
Hello.
Just to add to the other answers, you can take a look at this ootb funcionality Uploading multiple users | Alfresco Documentation
This is used to import users from a csv file.
I believe that can be a good source of ideas. Try to identify how it was implemented and use it as a starting point.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.