• EEE
  • NEWBIE
  • 25 Points
  • Member since 2007

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 13
    Replies
I had some success today refreshing dashboard and thought I'd share. I found some code from SF Heretic on refreshing homepages and dashboards, but it didn't quite work for me, though it got me pointed in the right direction which I greatly appreciate! Their code for refreshing the homepage didn't work for me the way it was setup. What did work was going to Homepage components and adding to the Messages & Alerts:

<meta http-equiv=refresh content=600>

And if you stay on the home page it does refresh after 10 minutes.

What I wanted to do was refresh a dashboard we have for mgmt users whenever they hit that page so they see the current numbers without having to click refresh. What I ended up doing was adding a component to the dashboard that was an S Control and all it contained was the following code where the ID listed is the ID of the dashboard. You can see the exact window open code I lifted below by going to the dashboard and with FIREBUG installed click INSPECT and select the REFRESH button on the page and it will show you something like the below....

Code:
<BODY onLoad="refreshDashboardTimeout();" >
<script>
function refreshDashboardTimeout() {
window.open('/01Z6000000073av—m=poll&refresh=1', 'db_refresh_frame');
}
</script>

Hope that helps some of you out there..........

E





  • May 17, 2007
  • Like
  • 0
We have an scontrol that is overriding the NEW button on LEAD that forces the user to search before having the ability to creating a lead. In the scontrol the search logs in as a search user with rights to see all records for duplicate detection using....
 
var result = sforce.Client.login("searchuser", "searchuserpassword”);

This process works in IE when I enable the ACCESS DATA SOURCES ACROSS DOMAINS option in Internet Options + Security + Custom Level + Miscellaneous. However this does not work in Firefox and I need it to.

I saw this thread about the same sort of subject but no solution:
http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=619&query.id=9179#M619

I have added salesforce.com as a trusted site everywhere I could find in Firefox options and that didn’t help…

I added logic to grant universal browser read, but that didn’t help....

Digging further with Firebug I’m seeing the error is on:

uncaught exception: Permission denied to call method XMLHttpRequest.open
XmlHttp(function(), "<?xml version='1.0' encoding='UTF-8' ?><soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/s...", false, function())sforceclient.js (line 833)
SendRequest("<?xml version='1.0' encoding='UTF-8' ?><soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/s...", function(), "login", false, "https://www.salesforce.com/services/Soap/u/7.0?nocache=1175710190078")sforceclient.js (line 895)
login("searchuser@ourdomain.com", "searchpassword", undefined)sforceclient.js (line 968)

I tried defining the callback with success / failure, which it now sees the undefined as an object, but I can’t get around that PERMISSION DENIED on the XMLHttpRequest. I have been looking at how to make the XMLHttpRequest, but I feel like I’m going in circles.

Thoughts or suggestions on how I can get this working in Firefox….?
 
Thanks-
Edmund

  • April 04, 2007
  • Like
  • 0
Does anyone know of a way to have Dashboards automatically refresh on load or how they could be scheduled to refresh?
I had some success today refreshing dashboard and thought I'd share. I found some code from SF Heretic on refreshing homepages and dashboards, but it didn't quite work for me, though it got me pointed in the right direction which I greatly appreciate! Their code for refreshing the homepage didn't work for me the way it was setup. What did work was going to Homepage components and adding to the Messages & Alerts:

<meta http-equiv=refresh content=600>

And if you stay on the home page it does refresh after 10 minutes.

What I wanted to do was refresh a dashboard we have for mgmt users whenever they hit that page so they see the current numbers without having to click refresh. What I ended up doing was adding a component to the dashboard that was an S Control and all it contained was the following code where the ID listed is the ID of the dashboard. You can see the exact window open code I lifted below by going to the dashboard and with FIREBUG installed click INSPECT and select the REFRESH button on the page and it will show you something like the below....

Code:
<BODY onLoad="refreshDashboardTimeout();" >
<script>
function refreshDashboardTimeout() {
window.open('/01Z6000000073av—m=poll&refresh=1', 'db_refresh_frame');
}
</script>

Hope that helps some of you out there..........

E





  • May 17, 2007
  • Like
  • 0
We have an scontrol that is overriding the NEW button on LEAD that forces the user to search before having the ability to creating a lead. In the scontrol the search logs in as a search user with rights to see all records for duplicate detection using....
 
var result = sforce.Client.login("searchuser", "searchuserpassword”);

This process works in IE when I enable the ACCESS DATA SOURCES ACROSS DOMAINS option in Internet Options + Security + Custom Level + Miscellaneous. However this does not work in Firefox and I need it to.

I saw this thread about the same sort of subject but no solution:
http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=619&query.id=9179#M619

I have added salesforce.com as a trusted site everywhere I could find in Firefox options and that didn’t help…

I added logic to grant universal browser read, but that didn’t help....

Digging further with Firebug I’m seeing the error is on:

uncaught exception: Permission denied to call method XMLHttpRequest.open
XmlHttp(function(), "<?xml version='1.0' encoding='UTF-8' ?><soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/s...", false, function())sforceclient.js (line 833)
SendRequest("<?xml version='1.0' encoding='UTF-8' ?><soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/s...", function(), "login", false, "https://www.salesforce.com/services/Soap/u/7.0?nocache=1175710190078")sforceclient.js (line 895)
login("searchuser@ourdomain.com", "searchpassword", undefined)sforceclient.js (line 968)

I tried defining the callback with success / failure, which it now sees the undefined as an object, but I can’t get around that PERMISSION DENIED on the XMLHttpRequest. I have been looking at how to make the XMLHttpRequest, but I feel like I’m going in circles.

Thoughts or suggestions on how I can get this working in Firefox….?
 
Thanks-
Edmund

  • April 04, 2007
  • Like
  • 0