Dear All,
Got the following problem to solve. The user should be able to copy a set of property values between different documents. My idea is the following:
Have all the codes to do the 1st part and the writing of property values.
How can I read a file stored in the 'My files' directoy and get its content?
Regards,
Zsolt Putnoky
Solved! Go to Solution.
The script API provides access to a node's content via the ScriptNode API. The home folder of a user (their "My Files" location) can be retrieved by accessing the property cm:homeFolder of the node representing the user (the person node) - that can be retrieved via the People API and "people" root object.
The script API provides access to a node's content via the ScriptNode API. The home folder of a user (their "My Files" location) can be retrieved by accessing the property cm:homeFolder of the node representing the user (the person node) - that can be retrieved via the People API and "people" root object.
Managed to open the file and read the content. So far so good. Now got another issue to list all the custom properties. Going ahead slowly
Hello,
I have the same problematic but I haven't find the function for read a txt file in ScriptNode API.
Can you help me please ?
Regards
Try
var fileContent = document.content;
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.