Using multiple containerPaths with LABKEY.Security.getContainers()

LabKey Support Forum (Inactive)
Using multiple containerPaths with LABKEY.Security.getContainers() slangley  2012-08-29 18:43
Status: Closed
 
Does the LABKEY.Security.getContainers() method still support passing in an array of containerPaths as per the documentation?

I tried it this afternoon and the ActionURL.js is throwing an exception as if it expects the passed in containerPath to always be a string rather than being an array.

Screenshot attached.

Thanks.

Scott
--
Scott Langley
Systems Analyst/Programmer
Statistical Center for HIV/AIDS Research and Prevention (SCHARP)
Fred Hutchinson Cancer Research Center
Seattle, Washington

slangley@scharp.org
 
 
kevink responded:  2012-08-29 18:48
Yes, it should still work. I think you meant to use the 'container' parameter instead of the 'containerPath' parameter.
 
slangley responded:  2012-08-30 11:16
Yes, that works. Thanks.

I was using the LABKEY.Security.getUserPermissions() just before that which does have a containerPath parameter and got that confused with the container parameter.

Scott