Version

DataManagerContext

You can use an instance of this object type to force an existing API method to bypass SharePlus cache and get SharePoint content straight from the server.

Create a new DataManagerContext object, then set its forceOnline property to true, and finally send the new object as a parameter to the API method.

Syntax

var context = new DataManagerContext(); // Create a new DataManagerContext object
context.forceOnline = true; // Set the forceOnline property to true

// Specify the web’s URL.
var webUrl = " http://spdemo.infragistics.com/demo";

// Invoke Web.getWebsAndLists API method.
SPlus.Web.getWebsAndLists(webUrl, function(webs, lists) {
     // Get all webs and lists and implement what to do with them
}, function(response) {
     // Implement how to handle errors
}, function(response) {
     // Implement how to handle a user’s cancel
}, context); // Send the DataManagerContext to the API method

API Methods which accept DataManagerContext as a parameter

Category

API Property

Parameters accepted by the Method

Search

getScopes

url, onSuccess, onError, onCancel, context

query

url, text, onSuccess, onError, onCancel, context

queryWithOptions

url, options, onSuccess, onError, onCancel, context

Web

getWebsandLists

url, onSuccess, onError, OnCancel, context

List

getItems

url, viewName, fields, onSuccess, onError, onCancel, context

getItemswithOptions

url, options, onSuccess, onError, onCancel, context

updateViewCollectionMetadata

url, onSuccess, onError, onCancel, context

listItem.download

url, onSuccess, onError, onCancel, context

User

getUser

url, onSuccess, onError, onCancel, context

getProfileByName

accountName, url, onSuccess, onError, onCancel, context