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>

Posted via email from Emil Swanepoel

Friday 12 October 2012

RT @jesse_duplantis #God wants everyone #saved. http://t.co/x6jqENRx Amen!

Its harvest time and God is taking aim...

Today God has loaded all His barrels with the harvest laborers and He has taken aim and He has fired! You, the harvest laborer, are the bullet that will deliver His message with surprise and accuracy right through the enemies front door! The gun powder is what causes a bullet to be so powerful and devastating to the enemy, the bullet is simply the deliverer of that power. In the same way, God's love and His Word are the power with which He is firing the harvest laborers into His harvest fields.
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."

Posted via email from Emil Swanepoel

Wednesday 10 October 2012

@vw Its here, finally and looks better in real life! Man I would love one of these!

RT @copelandnetwork, How to live this life free from fear now! Amen

From Faith to Faith -- Daily Devotional 

October, 10 2012 

Live Free From Fear 
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 

Posted via email from Emil Swanepoel

Sunday 7 October 2012

Compassion? Psalm 103:8 "The Lord is compassionate and gracious, slow to anger, abounding in love."

Compassion, noun
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?

Posted via email from Emil Swanepoel

Saturday 6 October 2012

Compassion precedes Jesus Miracles. Yes, Jesus loves you so much that He died for you, so you can be forgiven...

35 Jesus went about all the cities and the villages, teaching in their synagogues, and preaching the Good News of the Kingdom, and healing every disease and every sickness among the people. 36 But when he saw the multitudes, he was moved with compassion for them, because they were harassed and scattered, like sheep without a shepherd. 37 Then he said to his disciples, “The harvest indeed is plentiful, but the laborers are few. 38 Pray therefore that the Lord of the harvest will send out laborers into his harvest.”
Matt 9:35-38 (WEB)


Posted via email from Emil Swanepoel

@xerox can you print any book you want or create in the time it takes to make an expresso, and its in JHB!

RT: @copelandnetwork Revolutionary love! Awesome!

From Faith to Faith -- Daily Devotional 

October, 06 2012 

Revolutionary Love 
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

Posted via email from Emil Swanepoel

www.biblesforchina.org Take a look at the incredible change people are making, because of Jesus. And you can help too!

Thursday 4 October 2012

@microsoft release Windows 8 and Windows 8 tablet on 26th and Windows Phone 8 on 29th! Change is coming!

RT: ‏@CopelandNetwork God's power is the only power that covers the entire spectrum of human existence. God is more than enough! - Kenneth

October 26th, the launch date of the @microsoft Windows 8 and Music Service.

@follow_transnet I need some introductions to the leaders on the Durban projects, because my business can benefit, you, this incredible city and South Africa!

@talontan I am looking for introductions to leaders on @Transnet projects, because my company can help. Getting a foot in the door is not easy though. Can you help with some introductions? @emilswanepoel

Who can introduce me to political people who can make decisions on the development in Durban harbour and Transnet? My company wants to benefit this city and country!

#nolack #debtfree Romans 13:8 Owe no one anything, except to love one another; for he who loves another has fulfilled the Law.

#mynewbody the challenge with loosing weight, is buying new clothes because you don't fit into the old ones! :D