private async void load(string url) { HMS.SP.ListDataSource spListDataSource = await SPGet.getListDataSource(spglb.myClient, url); this.add_ListDataSource(1, spListDataSource); this.hide_running(); }
public int add_ListDataSource(int pos, int level, HMS.SP.ListDataSource spListDataSource) { if (spListDataSource.__HMSError_ != null && (spListDataSource.__HMSError_.errno != 0 || spListDataSource.__HMSError_.info != "")) { pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spListDataSource.__HMSError_)); } pos = this.add__deferred(pos, level, spListDataSource.__deferred_); pos = this.add__metadata(pos, level, spListDataSource.__metadata_); pos = this.add__rest(pos, level, spListDataSource.__rest); pos = this.add_linesAt(pos, level, "Properties", spListDataSource.Properties_, Type.GetType("SP.KeyValue")); //KeyValue; return(pos); }
public int add_ListDataSource_deferred(int pos, int level, HMS.SP.ListDataSource spListDataSource) { { string useUrl = spListDataSource.__deferred_.uri; if (!String.IsNullOrEmpty(useUrl)) { pos = this.add_lineAt(pos, level, false, "ListDataSource", "", knownPages.pageListDataSource, useUrl); } else { pos = this.add_lineAt(pos, level, true, "ListDataSource", "", knownPages.NONE, ""); pos = this.add_ListDataSource(pos, level + 1, spListDataSource); } } return(pos); }
public int add_ListDataSource(int level, HMS.SP.ListDataSource spListDataSource) { return(add_ListDataSource(-1, level, spListDataSource)); }