0
我有列的狀態和原因的Sharepoint使用SP.Camlquery()jQuery中
我用
<script language="ecmascript" type="text/ecmascript">
ExecuteOrDelayUntilScriptLoaded(ViewItem, "sp.js");
function ViewItem()
{
var context = new SP.ClientContext.get_current();
var web = context.get_web();
var list = web.get_lists().getByTitle('Objectives');
var query = SP.CamlQuery.createAllItemsQuery();
allItems = list.getItems(query);
context.load(allItems, 'Include(STATUS)');
context.executeQueryAsync(
Function.createDelegate(this, this.success), Function.createDelegate
(this, this.failed));
}
</script>
我只需要狀態欄是fetched.I需要camlquery和我的列表目標不知道在哪裏寫。