AnsweredAssumed Answered

Alfresco Webscript to Dynamically populate the nodes!

Question asked by bilalsaeed on Dec 6, 2016
Latest reply on Dec 9, 2016 by bilalsaeed

I have a JS based webscript to upload the file to Alfresco and another webscript to retrieve all the uploaded files. Basically once user upload the file I redirect user to file retrieval WS. Even if the file has been successfully uploaded to the Alfresco yet my document retrieval WS needed to be refresh again and again till the uploaded file appears.

 

In my existing doc retieval WS I am using lucene search to retrieve the nodes from a particular directory:

 

 

nodes=search.luceneSearch("PATH:\"/app:company_home/st:sites/cm:"+siteName+"/cm:documentLibrary/cm:"+folder+"/*\" ");

Any suggestions which file should be modified to achieve dynamic node population, either .js file(use any other node retrieval method) or .ftl file(asyn calls to WS until the new data is populated)?

Outcomes