Timeline for $models value in Anguilla retrieving as undefined on Chrome console for Tridion 2013 SP1 HR1
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 30, 2022 at 7:02 | comment | added | Chirag Arora | This doesn't seem to work for me. item.getWebDavUrl() returns undefined. With item.loadWebDavUrl() and $evt.addEventHandler(item, "loadwebdavurl", function (event) {webDavUrl = item.getWebDavUrl();}); also returns undefined. Any idea what to do? | |
Feb 27, 2015 at 8:19 | vote | accept | Sam | ||
Feb 18, 2015 at 13:24 | history | edited | UI Beardcore | CC BY-SA 3.0 |
added 488 characters in body
|
Feb 18, 2015 at 11:58 | comment | added | Sam | I updated with latest source code where i'm loading the events | |
Feb 18, 2015 at 11:36 | comment | added | UI Beardcore |
I can assume that you execute item.getWebDavUrl(); right after load . But load request is done asynchronously, you should track it with $evt.addEventHandler(item, "loadwebdavurl", onLoadcallback);
|
|
Feb 18, 2015 at 11:29 | comment | added | Sam | Thanks Beardcore..The above solution worked while debugging on chrome console but still i have issues when i put the code in the js file. I'm getting undefined. | |
Feb 18, 2015 at 8:41 | review | Low quality posts | |||
Feb 18, 2015 at 9:30 | |||||
Feb 18, 2015 at 8:24 | history | answered | UI Beardcore | CC BY-SA 3.0 |