cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Sandbox path?

jeyush
Champ in-the-making
Champ in-the-making
can anybody help me?

i wrote script for displaying the XMLs in the Sandbox.but i am not able to locate the path of the sandbox.please somebody help me to find sandbox path

I have this kind of locater code for the sandbox in js file

var storeRoot = avm.lookupStore("MADemo");
var folder = storeRoot.lookupNode("ROOT/" + "admin");

Do u think i m going in a proper way?

any suggestion will be appreciated.

thx in advance.
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
There is an example at the bottom of the JavaScript API docs, here is a snippet:

   var storeRootNode = avm.lookupStoreRoot(args["store"]);
   if (storeRootNode != null)
   {
      var path = storeRootNode.path + "/ROOT/admin/index.html";
      var node = avm.lookupNode(path);
      if (node == null)
      {
         return "ERROR: unable to find path: " + path;
      }

jeyush
Champ in-the-making
Champ in-the-making
Thank kevin for reply…..


bye