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()
{
归还这个;
}
我正在尝试传递两个不同的项目,用于筛选列表。我可以让它工作。但是,只有字符串数组中的第一项实际用于过滤器中。不确定我错过了什么
尝试本文中的建议-使用您自己的实现此实现适用于多个筛选器。我想使用一个超过1个值的过滤器。@Milton.Pulliza嗨,Milton,我也有同样的问题。你有没有找到解决办法?