Sharepoint : List Filter parameter > "No Schema"

nze123 1 Reputation point
2021-01-04T09:39:51.127+00:00

Hello

I cannot seem to get the parameters to work with Filters in Sharepoint.
I am on Sharepoint 365 (microsoftsharepointteamservices: 16.0.0.20802) - the site I am working on was created in Sharepoint2013

What I am trying to do is display a list of links in my pages, where links are filtered from a master links based on a context criteria which is part of the page attributes named "Area"
Links have a "FilterArea" text column, and I need to display all links which "contain" the value defined in the page field.

I created a view for my Links list and added a parameter "ParamArea" in Sharepoint Designer 2013 as follows :
<ParameterBinding Name="ParamArea" Location="QueryString(FilterArea)" DefaultValue=""/>
Then inside Query:
<Where>
<Contains>
<FieldRef Name="FilterArea"/>
<Value Type="Text">{ParamArea}</Value>
</Contains>
</Where>

In my page, I create a Page Field Filter Web part with the corresponding page attribute, then added a web part for the "Links" list and selected the above view
When creating the connection in the links web part , I use "get parameters from" and I get the following message "the consumer web part did not provide schema information" - even though the parameter does exist in the view.
Same issue with a simple Text Filter.

Would you have any idea what is going on or what I am doing wrong ?
Thanks in advance

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,030 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. nze123 1 Reputation point
    2021-01-04T15:02:45.14+00:00

    Update :
    I just found that, when trying to edit the "LinksByArea.aspx" (page for that same view which I am struggling to connect to a filter webpart), there I can add a text filter web part, which I am able to connect with the "Links" view using the "get parameters from" connection type !!
    The text filter works properly and I am able to obtain the desired filtering !!!!
    However on the "main" page(s), no way...

    I must be missing something...

    Any insight would be highly appreciated.

    0 comments No comments

  2. Baker Kong-MSFT 3,801 Reputation points
    2021-01-05T07:46:36.29+00:00

    Hi @nze123 ,

    Just now have a test with this Page Field Filter Web part and it works fine here. You need to add parameter/query schema in the "main" page(s), not the view page.

    Test steps:

    1, Prepare List

    53571-image.png

    2, Create a test webpart page and insert the list webpart and Page Field Filter Web part

    53533-image.png

    3, Edit the test web part page in SPD

    53534-image.png

    Result:

    53487-image.png
    53556-test.gif

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.