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

New Post: Creating a new infopath document in document library using SPServices

$
0
0
Is it possible to create an empty infopath document in a document library using SPServices?
I've uploaded an infopath template to the library. When I run the following code, it creates an entry in the library but its name and type are not set correctly. Any help would be greatly appreciated.


$().SPServices({
            operation: "UpdateListItems",
            async: false,
            batchCmd: "New",
            listName: "listname",
            valuepairs: [["DocIcon", "xml"],["LinkFilename", "test.xml"]],
            completefunc: function(xData, Status) {
                alert(String(Status));
            }
        });
});
Thanks

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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