AnsweredAssumed Answered

Problem to submit item in a script

Question asked by mpecero on Jun 24, 2009
Hello!
I'm trying to make a script to delete a xml content of the WCM.
My problem comes when I try to submit the deleted items after delete them. I use the JavaScript function ScriptableHashMap <String, Sandbox> getSandboxes (String userName) to obtain the user sandbox, but,  How do I get the sandbox object from the type ScriptableHashMap returned by the function?

script:{
…..
…..
var proyect=webprojects.getWebProject("example");
if(proyect != null){
   var space=proyect.getSandboxes("user1");
   if(space != null){
      ¿?¿?
   }
}

}

Thanks

Outcomes