Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPXmlToJson - wrapping the returned Title with a custom URL containing the item ID within the JSON

$
0
0

Alan:

This should do it:

    var x = $(xData.responseXML).SPFilterNode("z:row").SPXmlToJson({
        mapping: {
            ows_Created: {mappedName: "Created", objectType: "Text"},
            ows_LinkTitle: {mappedName: "LinkedTitle", objectType: "Text"},
            ows_Title: {mappedName: "Title", objectType: "Text"},
            ows_ID: {mappedName: "ID", objectType: "Counter"}
        },
        includeAllAttrs: false,
        removeOws: true
    });

You had renamed all of the mappedName attributes.

M.


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>