Buttons to change filter by date
Hello! So I'm wondering how I might set up a page with a list on it, so that two buttons on that page would change the date the list's view is filtered by. These buttons would increment or decrement the date the list currently displays (done right now with a filter). What would be the best way to do this? Thanks!
July 8th, 2013 10:38am

Hi,

Thank you for your post.
I'm trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

Thanks & Regards,
Emir

Free Windows Admin Tool Kit Click here and download it now
July 9th, 2013 3:58am

Hi Zamaster,

regarding this issue, perhaps you may try to create the webpart for the filter.

from the box itself, sharepoint should have the datepicker module, for date filter.

at this point you may add the start and end date. 

for the button, you can use Jquery command to change the datepicker value, then the filter will still according to the datepicker.

https://www.nothingbutsharepoint.com/sites/eusp/pages/sharepoint-list-filtering-by-date-range.aspx

http://stackoverflow.com/questions/4598850/how-do-you-add-buttons-to-a-jquery-datepicker-in-the-button-panelhttp://www.phpeveryday.com/articles/jQuery-UI-Adding-a-trigger-button-for-Datepicker-P1020.html

http://jqueryui.com/datepicker/

July 9th, 2013 4:34am

hi

list views may work with filter specified in the query string (like shown in the following article: Using the URL to sort or filter a list). So in event handlers of your buttons you may add query string values which will be used by list view for filtering, e.g.:

http://example.com?FilterField1=SomeDate&FilterValue1=yyyy-MM-dd

where SomeDate is the name of your date time field and yyyy-MM-dd - exact date value.

Free Windows Admin Tool Kit Click here and download it now
July 9th, 2013 4:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics