【问题标题】:How can I make a view(SPView) with data will be filtered by filter condition form url parameter?如何使用过滤条件表单 url 参数过滤数据的视图(SPView)?
【发布时间】:2010-10-18 09:22:45
【问题描述】:

例如,我有一些组,一些项目属于这些组。现在,我想通过 url 列出任意组的项目,例如http://sp2010/Lists/items.aspx?groupid=1

我制作了一个类似的 SPView

SPView 视图 = SPList.DefaultView;

view.Query = "
方程式> 哪里>";

view.Update();

它适用于 sharepoint 2007,但不幸的是它不适用于 sharepoint 2010。

【问题讨论】:

    标签: sharepoint-2010


    【解决方案1】:

    试试 FilterField 和 FilterValue:

    http://sp2010/Lists/MyList/AllItems.aspx?FilterField1=group&FilterValue1=Group%20Name

    注意,FilterField 的值是字段的内部名称,而不是显示名称。

    【讨论】:

      猜你喜欢
      • 2015-10-02
      • 1970-01-01
      • 2015-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多