Microsoft 开发人员网络 > 论坛主页 > SharePoint - Design and Customization > Insert List as a DataSource and Filter it according a parameter .
提出问题提出问题
 

已答复Insert List as a DataSource and Filter it according a parameter .

  • 2009年7月2日 9:18himo 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    Hello ,

     -  I have a List (ProjectList) in  my SharePointSite  .

     - Then I create an new Page.aspx  by SharePoint Designer .

     -  I open DataSourceLibrary ..... Then SharePointLists ..... select  ProjectList......RightClick and Choose insert  DataSource Control .

     - When The DataSource Control Created .  Then I need to Filter it .

     - I choose Configure DataSource and Press Button " Filter " . The "Filter Criteria " windows is opened .

     - In this windows there is a problem  :  The Value Column forced me a put a static value and cannot create a new parameter .

    -
    So How  I can Create a new Parameter in a value column .

     


    ASk

答案

  • 2009年7月2日 10:16Peter Holpar 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    Hi,

    It seems you cannot use parameters when filtering in the Data Source.

    Why do not use a Data View Web Part where you would be able to filter data received from your data source by parameters, for example by one that received from a filter web part?

    Peter
  • 2009年7月3日 10:21Xue-Mei Chang-MSFTMSFT, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复

    Hi,


    As Peter said, you cannot use parameter to filter a data source in SPD. You should insert a data view and set the data source to the list, after this you can filter the list by parameters. You can create data view parameter from (in the data view>click “common data view tasks”>”Parameters”).

     

    Hope it can help you.


    Xue-Mei Chang

全部回复