Microsoft Developer Network > Forenhomepage > SharePoint - Design and Customization > Insert List as a DataSource and Filter it according a parameter .
Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetInsert List as a DataSource and Filter it according a parameter .

  • Donnerstag, 2. Juli 2009 09:18himo TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    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

Antworten

  • Donnerstag, 2. Juli 2009 10:16Peter Holpar TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet
    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
  • Freitag, 3. Juli 2009 10:21Xue-Mei Chang-MSFTMSFT, ModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet

    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

Alle Antworten