Crow Canyon Software Forum

Forum Navigation
Please or Register to create posts and topics.

Use Querystring value as a filter on a CrowCanyon listview

Hi,

I would like to find out if there is a way that I can use the form querystring value as a filter on a CrowCanyone listview.

For example, I have a form url "https://xxx.sharepoint.com/sites/company/SitePages/Test.aspx?Year=2023".

I want to pass the querysting Year with value "2023" to a the listview so that I can only return records which has Year field 2023.

Thanks

Hi @slo,

Please follow below instructions:

  • Create multiple filtered list views based on years 2022, 2023, 2024 etc.

To create a list view, go to the list --> List Settings --> Create View --> Create a filtered view as required (see sample condition).

<Please refer attached file View_1.png>

To pass list view name in query string parameter, use “?CCSView=SharePoint list view name” at the end of page URL.

Example: https://contoso.sharepoint.com/sites/Helpdesk/SitePages/All-Tickets.aspx?CCSView=Unassigned%20Tickets

<Please refer attached file View_2.png>

<Please refer attached file View_3.png>

  • Above configurations are for one list view webpart. Please follow same steps for other Crow Canyon list view webparts added to the page.
Uploaded files:
  • View_1.png
  • View_2.png
  • View_3.png