Microsoft Developer Network > Página principal de foros > SharePoint - Design and Customization > Insert List as a DataSource and Filter it according a parameter .
Formular una preguntaFormular una pregunta
 

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

  • jueves, 02 de julio de 2009 9:18himo Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     

    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

Respuestas

  • jueves, 02 de julio de 2009 10:16Peter Holpar Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Respondida
    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
  • viernes, 03 de julio de 2009 10:21Xue-Mei Chang-MSFTMSFT, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Respondida

    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

Todas las respuestas