Hello,
I have try to find solution with simple URL like I think than I have before.
But more I search and test, more i'm not sure of my memory...
My memory let me thing than I have a URL like this
http://mysharepoint server url/sites/name of the site/list/name of the list/list.aspx?FilterField1=Date&FilterValue1="&docsetdatefield&"
But each test I have make give the same result. The list load the default view and the FilterField1 stay empty in the URL.
So I have continu the research and test.
I have find than it was possible to built a URL via a calculate field, but Microsoft have block this option since few version.
So this is not availaible, you could go deep in SP configuration with powershell to put the block value at false or true, but if like me you are in SP 2016 and in few years you will go in SP Online.
This hack doesn't work anymore.
I finish by find a methode to have a working URL :o)
Like I use a workflow to create items in my planning list.
I have add a new fields in this list with hyperlink format.
Like my actuel workflow catch the date of the meeting and put this date in a variable, I add somes code in the workflow to
copy the variable content in another and create a new variable with my complete URL with right filter value.
The result is http://spserverurl/sites/cdd//Lists/list name/list.aspx?FilterField1=date&FilterValue1=2021-07-19
For testing I have copy this URL in the workflow history.
When I click on it, it charge the page with the good planning.
Here is the step I have use:
- catch the date value in the workflow variable.
- Convert the value in ISO format for date and hour.
- Extract the 10 first char from the variable to retrieve only the date 2021-07-19 and copy this value in another variable.
- add this variable in the update list command and link this one with the new fields hyperlink.
- In the docset content type, go in properties and advance parameters and select the hyperlink fields and share it on the docset home page view.
Like this I have a hyperlink to the right planning list in my docset.
If I click to view the content of the docset, I could click on the link to return at the previous page and activate the filter for the date include in the docset home page.
That's resolve a good parts of my issue.
But when i make test, I have another bug.
Like I use the connection option between my 2 webparts, when I return on the page with this link.
The filter option disable or block the link between my webparts.
If I click on the link the page load and the URL is http://spserverurl/sites/cdd//Lists/list name/list.aspx?FilterField1=date&FilterValue1=2021-07-19
I view all elements with the 2021-07-19 date, but no docset in the second webparts.
If I click on the double arrow at the left of an items, the URL change at the top of the page, but the page do not refresh correctly.
It's like than the filter option disable a part of the connection between the two webparts.
If I click to select the new URL and press entrer ou use F5 to refresh the page, the docset with the date 2021-07-19 finish by load in the second webparts.
But I lost the filter option and the list item load the default items who are not at the same date.
The best could be than I have the right items ID and try to change the URL to filter witht his item id.
Or find a way to force a complete refresh of the page without lost the filter information an let the docset load correctly when we click on
the double arrow icons.
Any hint about this bug ?