Solved

How to link two Calendar Views in Share Point?

Posted on 2014-12-30
1
169 Views
Last Modified: 2015-01-09
First of all I would like to express my gratitude to rawsteak for his help. Thank you!

Now I am facing another problem. I added another Web Part and modified the view. But how can I link my lower Web Part that contains list view data to my upper Calendar. Right now it contains the events from beginning of this year till end of next, 2015. If I go to "Edit the current view" and manually enter time frame it will show the data I want to see: All events for December 2014. So I guess I have two questions:

1. Can I program the filter for a current Month?
2. If not, is there any way I can link lower and upper Views?

I would appreciate your help and advise.
0
Comment
Question by:Burzhuin
1 Comment
 
LVL 8

Accepted Solution

by:
Jayaraja Jayaraman earned 500 total points
ID: 40533951
SPWeb web = SPContext.Current.Web;
string[] monthViewUrls = { "url1", "url2", ... };
string currentMonthUrl = monthViewUrls[DateTime.Now.Month-1];
Response.Redirect(currentMonthUrl );
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question