Friday, 26 October 2012
Thursday, 25 October 2012
Set the @Microsoft @SharePoint Performance Point dashboard to default to yesterday's date. This will work for 2007 and 2010!
Okay, I have followed this thread for a while and tried so many methods to get this to work, eventually I hacked my way through almost all the SP2010 and SP2007 JavaScript and found the following to work on SP2010 and I had it working in SP2007 with a different tad prefix.
1. find out what the Javascript id prefix of your calendar parts are.
i. -To do this, start your dashboard in IE8 or IE9 and hit F12 to start the Javascript Debugger.
ii. -User the Javascript GetElementByTagName("TD") to get a full list of all the TD tags on the page.
iii. -Look for the tags that have a GUID in the id and that end with _Selection and Selection_Toggle.
iv. -These will be your calendar filter parts. Note the starting prefix (in SP2007 it was ct_100_ in SP2010 it is pps_)
2. add the following Javascript to the end of your master page which is used for the Dashboards (look at end of the post)
3. save the master page and refresh your browser and the date should change to yesterday. I have also created this for a dashboard with two calendar filters on it to allow for date range filtering and this will set the first date to 11 days earlier and the second date to yesterday.
<script type="text/JavaScript">
var isFirstLoad;
var calendarLoaded = false;
var srcID = "ctl00_m_WebPart_293af46d1c5c4320893d47f86614325bSelection";
var strDate = "Tue Aug 2 00:00:00 UTC+0200 2011";
var t;
var dateBackA = 1;
var dateBackB = 10;
testForCalendar();
function testForCalendar()
{
isFirstLoad = true;
if(calendarLoaded != true)
t = setTimeout("waitForIt()", 5);
}
function waitForIt()
{
var foundControl = -1;
var t = document.getElementsByTagName("TD");
var ts = "";
var subDateFound = false;
var xPoint = 0;
for(var x = 0; x < t.length; x++)
{
if((t[x].id.indexOf("pps_") == 0) && t[x].id.indexOf("Selection_Toggle") > 0)
{
foundControl = x;
ts = t[x].id.substring(0, t[x].id.indexOf("_Toggle"));
xPoint = x;
x = t.length;
}
}
if(foundControl > -1)
{
if(isFirstLoad == true)
{
if(t[xPoint].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML.indexOf("Start Date:") > -1)
calendarIntercept(ts, calendarDate(new Date(), dateBackB));
else
calendarIntercept(ts, calendarDate(new Date(), dateBackA));
waitForItSub(xPoint, ts);
calendarLoaded = true;
isFirstLoad = false;
}
else
t = setTimeout("waitForIt()", 5);
}
else
t = setTimeout("waitForIt()", 5);
}
function waitForItSub(startPoint, firstTag)
{
var foundControl = -1;
var t = document.getElementsByTagName("TD");
var tsub = "";
var xPointNew = 0;
for(var x = (startPoint++); x < t.length; x++)
{
if(t[x].id.indexOf(firstTag) == -1)
{
if((t[x].id.indexOf("pps_") == 0) && t[x].id.indexOf("Selection_Toggle") > 0)
{
foundControl = x;
tsub = t[x].id.substring(0, t[x].id.indexOf("_Toggle"));
xPointNew = x;
x = t.length;
}
}
}
if(foundControl > -1)
{
if(isFirstLoad == true)
{
if(t[xPointNew].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML.indexOf("Start Date:") > -1)
calendarIntercept(tsub, calendarDate(new Date(), dateBackB));
else
calendarIntercept(tsub, calendarDate(new Date(), dateBackA));
calendarLoaded = true;
isFirstLoad = false;
}
}
}
function calendarIntercept(inSrcID, inDate)
{
strDate = (inDate.getMonth()+1) + "/" + inDate.getDate() + "/" + inDate.getFullYear();
pps_TI_calendar_render ( inSrcID, strDate , strDate );
}
function calendarDate(inDate, daysBack)
{
var returnValue = new Date();
returnValue.setDate(returnValue.getDate() - daysBack);
return returnValue;
}
</script>
Wednesday, 24 October 2012
Tuesday, 23 October 2012
Sunday, 21 October 2012
Saturday, 20 October 2012
Friday, 19 October 2012
Thursday, 18 October 2012
Wednesday, 17 October 2012
Tuesday, 16 October 2012
Saturday, 13 October 2012
Friday, 12 October 2012
Its harvest time and God is taking aim...
Matthew 11 : 12
"And from the days of John the Baptist until now the kingdom of heaven suffereth violence, and the violent take it by force."
Thursday, 11 October 2012
Wednesday, 10 October 2012
RT @copelandnetwork, How to live this life free from fear now! Amen
Gloria Copeland He that dwelleth in the secret place of the most High shall abide under the shadow of the Almighty. I will say of the Lord, He is my refuge and my fortress: my God; in him will I trust. Surely he shall deliver thee from the snare of the fowler, and from the noisome pestilence.
- Psalm 91:1-3 Is it possible to live free from fear in this dangerous and unpredictable world? Yes, it most definitely is! Because protection is a solid promise of God. But it's not a promise that's offered to just anyone; it is promised to those who abide in the Lord. To abide means to dwell, to remain and to continue. To abide in the shadow of the Almighty is to live in continual union with Him, keeping His Word and obeying His voice. Those who abide in the Lord can live without dread of what the devil will do. Let me make this clear though-- God's promise of protection doesn't guarantee that the devil will leave you alone! It means that God will give you a way of escape every time the devil rears his ugly face at you. If you are afraid of the dangers around you, spend more time in the Word and in prayer until your trust in God overcomes your fear. Draw closer to the Lord until you are abiding in the shadow of the Almighty and--no matter how dangerous this world becomes--He surely shall deliver you! Scripture Reading: Psalm 91:1-16
Tuesday, 9 October 2012
Sunday, 7 October 2012
Compassion? Psalm 103:8 "The Lord is compassionate and gracious, slow to anger, abounding in love."
1. a feeling of deep sympathy and sorrow for another who is stricken by misfortune, accompanied by a strong desire to alleviate the suffering, from Dictionary.com Psalm 103:8 "The Lord is compassionate and gracious, slow to anger, abounding in love."This is what the Lord does for us, what have we done for Him lately?
Saturday, 6 October 2012
Compassion precedes Jesus Miracles. Yes, Jesus loves you so much that He died for you, so you can be forgiven...
Matt 9:35-38 (WEB)
RT: @copelandnetwork Revolutionary love! Awesome!
Kenneth Copeland Love bears up under anything and everything that comes, is ever ready to believe the best of every person, its hopes are fadeless under all circumstances and it endures everything [without weakening]. Love never fails--never fades out or becomes obsolete or comes to an end.
- 1 Corinthians 13:7-8 Love never fails. Nothing works without it, and there can be no failure with it. When you live by love, you cannot fail. It takes faith to believe that love's way will not fail. The natural mind cannot understand that because the natural man and his world are ruled by selfishness. But when you practice love by faith and refuse to seek your own, you put the Father into action on your behalf. As long as you stay in love, God the Father seeks your own. He sees to it that you succeed. Walking in love is to your great advantage! Agape love is a new kind of power. It makes you master of every situation. No weapon that is formed against you will prosper. No one even has the power to hurt your feelings because you are not ruled by feelings but by God's love. You are loving as He loves. This love is revolutionary. If we fully understood the great return from living God's love, we'd probably be competing with each other, each of us trying to love the other more. And without a doubt, everyone would emerge from that competition a winner! For love is truly the only sure secret to our success. Scripture Reading: Romans 12:9-21
© 1992 Eagle Mountain International Church aka Kenneth Copeland Publications All rights reserved