SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){
var ctx=new SP.ClientContext.get_current();
var list = ctx.get_web().get_lists().getByTitle("TVC");
ctx.load(list);
ctx.executeQueryAsync(Function.createDelegate(this, function(){
console.log("List ID= "+list.get_id().toString());
console.log("List Item Count= "+list.get_itemCount());
}), Function.createDelegate(this, function(){}));
});
var ctx=new SP.ClientContext.get_current();
var list = ctx.get_web().get_lists().getByTitle("TVC");
ctx.load(list);
ctx.executeQueryAsync(Function.createDelegate(this, function(){
console.log("List ID= "+list.get_id().toString());
console.log("List Item Count= "+list.get_itemCount());
}), Function.createDelegate(this, function(){}));
});
No comments:
Post a Comment