AnsweredAssumed Answered

not able to parse the values of objects using ajax jsonGet method when calling the repo webscript from share webscript

Question asked by ayushi.agrahari on Sep 5, 2017

I am following GitHub - zhihailiu/alfresco-folder-size: Alfresco folder size to calculate the folder size and no of files of the folder and it is working perfectly fine that is it is able to show the folder size and no of files alongwith the properties of folder as a separate component.

But,Now I also want to  show the folder size and number of files of the folder in the document library in the same way as the type of folder is shown.For this, I am trying to call the repo webscript from the share webscript by using AJAX json.Get method.the script is working but it is not able to parse the value of the size object,that is the size object is receiving the undefined value

 

Below is the attached js file that contains the AJAX jsonGet method to call the repo webscript and the screenshot of the share page that is shown when the hasCustom.js method is exceuted

 

Any help would be greatly appreciated.

Outcomes