小编bre*_*per的帖子

在获取共享点项目上使用过滤器的Microsoft图形API

我正在尝试使用Microsoft Graph API过滤我的Sharepoint项目结果查询,如此处所述所以我正在尝试这样 https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items 做,所以我尝试添加

?&filter=od eq 1或从复制expand ?filter=fields(select%3Did) = 1,均无效。请帮忙

odata sharepoint-online microsoft-graph

6
推荐指数
1
解决办法
1949
查看次数

AngularJS控制器执行两次

我必须补充一点,我正在研究Sharepoint 2013,可视化网络部分.我的ascx:

<%@ Control Language="C#" Inherits="SharePoint.BLL.UserControls.VODCatalog, SharePoint.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=81fc048468441ab3" %>
<%@ Register TagPrefix="SPWP" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"  Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<div ng-app="VODCatalogModule">
    <div class="wrapper" ng-view="">   
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

我的JS:

var VODCatalogModule = angular.module('VODCatalogModule', []);

var testWPDefinedView = 'TopLevelView';

VODCatalogModule.config(function ($routeProvider) {
    $routeProvider.when('/TopLevelView', { controller: 'VODCatalogController', templateUrl: '/_catalogs/masterpage/html/VODCatalog_TopLevelView.html' })
                  .when('/LowLevelView', { controller: 'VODCatalogController', templateUrl: '/_catalogs/masterpage/html/VODCatalog_LowLevelView.html' })
                  .otherwise({ redirectTo: '/' + testWPDefinedView });
});

function VODCatalogController($scope, $http) {
    $scope.VODCatalogLevel = 1;
    $scope.BreadCrumbs = []; …
Run Code Online (Sandbox Code Playgroud)

angularjs

3
推荐指数
1
解决办法
1万
查看次数

有没有更简洁的方法来使用JavaScriptSerializer.Deserialize(json)?

有没有更好的方法来做到这一点?

JavaScriptSerializer jss = new JavaScriptSerializer();
Dictionary<string, object> dic =
    jss.Deserialize<Dictionary<string, object>>(json);
Dictionary<string, object>.Enumerator enumerator = dic.GetEnumerator();
enumerator.MoveNext();
ArrayList arr = (ArrayList)enumerator.Current.Value;
foreach (Dictionary<string, object> item in arr)
{
    string compID = item["compID"].ToString();
    string compType = item["compType"].ToString();
}
Run Code Online (Sandbox Code Playgroud)

我想要的只是我的项目数组(即comp)

我发送一个像这样的json:

{ "comps" : [ { compID : 1 , compType : "t" } , { ect. } ] }
Run Code Online (Sandbox Code Playgroud)

.net c#

0
推荐指数
1
解决办法
427
查看次数

标签 统计

.net ×1

angularjs ×1

c# ×1

microsoft-graph ×1

odata ×1

sharepoint-online ×1