cancel
Showing results for 
Search instead for 
Did you mean: 

WebScript location 'slingshot/doclib/doclist/documents/node/alfresco/company/home' ?

itzamna
Confirmed Champ
Confirmed Champ
Hi all,

I'm starting to create a dashlet that should return some documents based on a specified content-type. I checked the source-files of the "My Documents" dashlet. It's very close to my requirement but instead using the filter value "recentlyModifiedByMe" I want to pass my content-type. I see, that in the JS file of my-documents.js the following happens:

<javascript>
      /**
       * Generate base webscript url.
       * Can be overridden.
       *
       * @method getWebscriptUrl
       */
      getWebscriptUrl: function SimpleDocList_getWebscriptUrl()
      {
         return Alfresco.constants.PROXY_URI + "slingshot/doclib/doclist/documents/node/alfresco/company/home?max=50";
      }
</javascript>

Now I want to check the webscript that is invoked in the function to get an understanding what happens and how I'm able to use or extend it to make it working for me.
But my really stupid question is: Where do I find the webscript definition? As far as I know it must be available on Share side. But I dont find anything related to it in folder "share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\dashlets"??? What is the trick?


http://localhost:8080/share/proxy/alfresco/slingshot/doclib/doclist/documents/node/alfresco/company/...


Thanks!
1 REPLY 1

scouil
Star Contributor
Star Contributor
Hi,

No it's actually in the Alfresco side. You can see it by the use of
Alfresco.constants.PROXY_URI

which is what Share uses to call Alfresco's webscripts (with the right access rights)

I believe the webscript you're looking for it:
http://localhost:8080/alfresco/s/script/org/alfresco/slingshot/documentlibrary/doclist.get