Hello,
I am trying to search the repository according to what site the user is currently in. There are several sites and I wan't to avoid creating a seperate webscript for each dashlet. If i had the current site, the search for a specific folder can be updated according to the current site. This would make my webscript very versatile, reusable, and would end the need for multiple webscripts.
EXAMPLE:
var currentSite = HR;
var folder = userhome.childByNamePath("/sites/" + currentSite);