customization - SharePoint View to automatically show only the current month? -
I need to create a scene that will automatically change from month to month, only the current month (i.e. if present July to July - Show items are posted in July). Currently I have a view set up, but every time I change it, then manually change the month (it is set on the first day of the current month and on the last day of the current month).
Thanks
Edit:
I believe That's none of the box solution for this. A trick code may be written to the default view, which will actually set the month for you or redirect to another view. Something like this
SPWeb web = SPContext.Current.Web; String [] massy url = {"url1", "url2", ...}; String current MonthUrl = monthViewUrls [DateTime.Now.Month-1]; response. Redirect (current Mindyral);
Hope it helps.
Comments
Post a Comment