You need to sign in to do that
Don't have an account?
shan876
How do I display this on the Homepage... This is a Custom S Control....
S-Control On Homepage????
I have the following S-Control code:
Code:
<html> <head> <meta http-equiv=“refresh” content=“600″ /> <script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script> <script type="text/javascript"> window.onload=init_page; function init_page() { var j= ""; var output=""; strSQL = "Select Id,AS400_Account_Number__c,Name,BillingCity,SF_DATE_ON_SERVICE__c from Account where OwnerId='{!$User.Id}' and SF_DATE_ON_SERVICE__c = LAST_N_DAYS:30 ORDER BY SF_DATE_ON_SERVICE__c"; var result = sforce.connection.query(strSQL); var records = result.getArray("records"); for (var i=0; i<records.length; i++) { j +='<a href="/' + records[i].Id + ' "target=_blank"">' + (i+1) +') ' + records[i].AS400_Account_Number__c + ' - ' + records[i].Name + ' - ' + records[i].BillingCity + ' - ' + records[i].SF_DATE_ON_SERVICE__c + '</a><br> ' } document.getElementById('div_tag').innerHTML = j ; } </script> </head> <body bgcolor="#EEEEEE"> <font size="2" face="Garamond"> <div id="div_tag">Loading...</div></font> </body> </html>
How do I display this on the Homepage... This is a Custom S Control....
You need to create a Home page component. Make the component HTML and add an IFRAME tag which references your sControl. You'll need to modify your sControl to resize the iframe after the data loads and that should keep the new iframe on the home page from negatively impacting your users.
-greg
Hi Greg,
I was wondering if you could help me with something.
I am trying to do something very similar, but I am not sure how to do what you are referring to.
I have an S-Control titled 'CaseTest' that I created using the Ajax Tools -
but I am not sure what I put in the Home Page Component and what gets added to the S-Control.
Also, I have a Look up field in here called Route_To_User__c, do you know how I can return the user name here instead of the ID?
Thanks for the help.
Grant
Hi Greg:
The way I did it, was I placed on the homepage component the HTML iFrame linking to the S-control...
So in my S-control I would place the code that you have listed here and then call in through an iframe... I hope that helps... That is the only way I know how to do it unless visualforce comes out soon I hope and we can change the homepage on a fly with actual code u know...
Right now Im trying to do a print button when a person selects the cases they want from the queue, they could hit print and it prints all detail one by one...
the other is to override a close button on the case depending on case reason....
whooopppyyy funnnn... :smileytongue:
Anyway I hope that helps someway and hope you figure it out....Good Luck....
Thanks
Is SOQL complex enough to allow nested queries?
I will give that a go, thanks a lot!
I ran into a bit of a snag, my S-Control works in Firefox, but not in IE, any know why that is?
Unfortunately, we are pretty much a Microsoft shop, and everyone uses IE... I prefer firefox most of the time, but I have to appease the masses.
Edit - It is getting an Unkown Runtime Error on the call to the S-Control
Thanks
Message Edited by gmc74 on 01-18-2008 07:30 AM