AnsweredAssumed Answered

pass current site name to repository webscript

Question asked by romschn on Sep 2, 2011
Latest reply on Sep 21, 2011 by tapan.d.thakkar
Hi,

I want to pass the current site name of share to the repository webscript.

I am invoking the repository webscript in javascript as below.

var result = remote.call("/xyz/xyz");

I tried below two ways of passing current site name in the webscript URL but couldn't get it working.
1.  var result = remote.call("/xyz/xyz?sitename=" + Alfresco.current.SITE);
2.  var result = remote.call("/xyz/xyz?sitename=" + page.url.templateArgs.site);

Could anyone please help me on this? What am I missing?

Thanks,

Outcomes