Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 我正在尝试在web部件中使用SharePoint ITransformableFilterValues多个值_C#_Sharepoint_Sharepoint 2010_Web Parts - Fatal编程技术网

C# 我正在尝试在web部件中使用SharePoint ITransformableFilterValues多个值

C# 我正在尝试在web部件中使用SharePoint ITransformableFilterValues多个值,c#,sharepoint,sharepoint-2010,web-parts,C#,Sharepoint,Sharepoint 2010,Web Parts,这是我的密码: protected override void CreateChildControls() { } public bool AllowAllValue { get { return true; } } public bool AllowEmptyValue { get { return true; }

这是我的密码:

protected override void CreateChildControls()
        {
        }

        public bool AllowAllValue
        {
            get { return true; }
        }

        public bool AllowEmptyValue
        {
            get { return true; }
        }

        public bool AllowMultipleValues
        {
            get { return true; }
        }

        public string ParameterName
        {
            get { return "Label"; }
        }

        public System.Collections.ObjectModel.ReadOnlyCollection<string> ParameterValues
        {
            get
            {
                string[] labels = { "01082-002", "01082-003" };
                return new ReadOnlyCollection<string>(labels);
            }
        }
        [ConnectionProvider("Binder Label Filter", "ITransformableFilterValues", AllowsMultipleConnections = true)]
        public ITransformableFilterValues SetConnectionInterface()
        {
            return this;
        }
protectedoverride void CreateChildControls()受保护的覆盖
{
}
公共布尔值
{
获取{return true;}
}
公共布尔允许最大值
{
获取{return true;}
}
公共布尔允许多个值
{
获取{return true;}
}
公共字符串参数名
{
获取{return“Label”;}
}
public System.Collections.ObjectModel.ReadOnlyCollection参数值
{
收到
{
字符串[]标签={“01082-002”,“01082-003”};
返回新的只读集合(标签);
}
}
[连接提供程序(“活页夹标签过滤器”、“ITransformableFilterValues”,AllowsMultipleConnections=true)]
公共ITransformableFilterValues SetConnectionInterface()
{
归还这个;
}
我正在尝试传递两个不同的项目,用于筛选列表。我可以让它工作。但是,只有字符串数组中的第一项实际用于过滤器中。不确定我错过了什么

  • 转到您的页面并编辑它

  • 展开过滤器提供程序web部件上的菜单,浏览 “连接”,单击先前建立的连接 (使用过滤器使用者部件)并通过单击“删除”将其删除 弹出窗口中的连接“

  • 重新建立连接,但这次是在第一个弹出窗口中 选择连接类型为“从”获取筛选器值”


  • 尝试本文中的建议-使用您自己的实现此实现适用于多个筛选器。我想使用一个超过1个值的过滤器。@Milton.Pulliza嗨,Milton,我也有同样的问题。你有没有找到解决办法?