Retrieve value from object
Hi,
I am using SharePoint Client object model to fetch data from a custom list.
I have a URL field which contains the url value.
I am trying to access the data, but I am getting as [Object].
code used is:
- function RenderHtmlOnSuccess()
- {
- var enumerator = this.TestListItems.getEnumerator();
- while (enumerator.moveNext())
- {
- var currentItem = enumerator.get_current();
- var imagePath = currentItem.get_item("testfilePreviewPath");
- }
- }
In F12 of IE, for currentItem.get_item("testfilePreviewPath"), i can see the below:
{...} object
$2_1 = "url" string
$3_1 = "url" string
The data is there in $2_1 and $3_1..
what is $2_1 and $3_1?
How to fetch the URL value?
Thanks