Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm using the below code in the js file as suggested in stackoverflow question http://stackoverflow.com/questions/14082844/getting-the-webdavurl-from-tridion-anguilla-in-the-list-viewhttps://stackoverflow.com/questions/14082844/getting-the-webdavurl-from-tridion-anguilla-in-the-list-view

    Extensions.CopyUri.prototype._execute = function CopyUri$_execute(selection) {
    selectedItem = selection.getItems()[0];
   // prompt("Copy the Item ID using Ctrl/Cmd + C:", selection.getItems()[0]);


var item = $models.getItem(selectedItem),
    webDavUrl = item.getWebDavUrl();

if (!webDavUrl) {
    // WebDavUrl for cached item hasn't been loaded yet, so lets load it.
    $evt.addEventHandler(item, "loadwebdavurl", function (event) {
        webDavUrl = item.getWebDavUrl(); // also could do event.source.getWebDavUrl()
    });
    item.loadWebDavUrl();
}
prompt("Webdav Url is ",webDavUrl);
alert(webDavUrl);
}

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm using the below code in the js file as suggested in stackoverflow question http://stackoverflow.com/questions/14082844/getting-the-webdavurl-from-tridion-anguilla-in-the-list-view

    Extensions.CopyUri.prototype._execute = function CopyUri$_execute(selection) {
    selectedItem = selection.getItems()[0];
   // prompt("Copy the Item ID using Ctrl/Cmd + C:", selection.getItems()[0]);


var item = $models.getItem(selectedItem),
    webDavUrl = item.getWebDavUrl();

if (!webDavUrl) {
    // WebDavUrl for cached item hasn't been loaded yet, so lets load it.
    $evt.addEventHandler(item, "loadwebdavurl", function (event) {
        webDavUrl = item.getWebDavUrl(); // also could do event.source.getWebDavUrl()
    });
    item.loadWebDavUrl();
}
prompt("Webdav Url is ",webDavUrl);
alert(webDavUrl);
}

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm using the below code in the js file as suggested in stackoverflow question https://stackoverflow.com/questions/14082844/getting-the-webdavurl-from-tridion-anguilla-in-the-list-view

    Extensions.CopyUri.prototype._execute = function CopyUri$_execute(selection) {
    selectedItem = selection.getItems()[0];
   // prompt("Copy the Item ID using Ctrl/Cmd + C:", selection.getItems()[0]);


var item = $models.getItem(selectedItem),
    webDavUrl = item.getWebDavUrl();

if (!webDavUrl) {
    // WebDavUrl for cached item hasn't been loaded yet, so lets load it.
    $evt.addEventHandler(item, "loadwebdavurl", function (event) {
        webDavUrl = item.getWebDavUrl(); // also could do event.source.getWebDavUrl()
    });
    item.loadWebDavUrl();
}
prompt("Webdav Url is ",webDavUrl);
alert(webDavUrl);
}
Tweeted twitter.com/#!/StackTridion/status/568049797426511872
added 917 characters in body
Source Link
Sam
  • 1.4k
  • 7
  • 16

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm using the below code in the js file as suggested in stackoverflow question http://stackoverflow.com/questions/14082844/getting-the-webdavurl-from-tridion-anguilla-in-the-list-view

    Extensions.CopyUri.prototype._execute = function CopyUri$_execute(selection) {
    selectedItem = selection.getItems()[0];
   // prompt("Copy the Item ID using Ctrl/Cmd + C:", selection.getItems()[0]);


var item = $models.getItem(selectedItem),
    webDavUrl = item.getWebDavUrl();

if (!webDavUrl) {
    // WebDavUrl for cached item hasn't been loaded yet, so lets load it.
    $evt.addEventHandler(item, "loadwebdavurl", function (event) {
        webDavUrl = item.getWebDavUrl(); // also could do event.source.getWebDavUrl()
    });
    item.loadWebDavUrl();
}
prompt("Webdav Url is ",webDavUrl);
alert(webDavUrl);
}

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm using the below code in the js file as suggested in stackoverflow question http://stackoverflow.com/questions/14082844/getting-the-webdavurl-from-tridion-anguilla-in-the-list-view

    Extensions.CopyUri.prototype._execute = function CopyUri$_execute(selection) {
    selectedItem = selection.getItems()[0];
   // prompt("Copy the Item ID using Ctrl/Cmd + C:", selection.getItems()[0]);


var item = $models.getItem(selectedItem),
    webDavUrl = item.getWebDavUrl();

if (!webDavUrl) {
    // WebDavUrl for cached item hasn't been loaded yet, so lets load it.
    $evt.addEventHandler(item, "loadwebdavurl", function (event) {
        webDavUrl = item.getWebDavUrl(); // also could do event.source.getWebDavUrl()
    });
    item.loadWebDavUrl();
}
prompt("Webdav Url is ",webDavUrl);
alert(webDavUrl);
}
deleted 8 characters in body
Source Link
UI Beardcore
  • 2.3k
  • 12
  • 13

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

I'm trying to retrieve the webdav url of a component using Anguilla but i see the value to be retrieved as undefined. As suggested by Nuno i'm using

var x = frames[0].$models.getItem(“tcm:1-123”)
x.loadWebDavUrl()
x.getWebDavUrl()

Not only this function but rest all are also resulting as undefined.enter image description here

Source Link
Sam
  • 1.4k
  • 7
  • 16
Loading