• ClintProd
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 8
    Replies
Better documentation on stylesheets and their usage is needed. I am running into issues with using the pbHeader class on S-Controls that I create. It doesn't display like the default Salesforce pages. Reference the following code.
 
Code:
<div class="pbHeader">
         <table  border="0" cellpadding="0" cellspacing="0">
             <tr>
                 <td class="pbTitle"><img src="/s.gif" alt="" width="1" height="1" class="minWidth" title="" /><h2 class="mainTitle">Salesforce Development Documentation</h2></td>
                 <td class="pbButton"><input value=" Edit "  class="btn" name="edit" title="Edit" type="button" /></td>
             </tr>
         </table>
     </div>

 
If you go to the Account tab or any other default Salesforce page, you get a nicely formatted button bar with in the bPageBlock div. If you use the code above on a custom page you get something totally different. The button appears with a white background and kind of outside the bPageBlock div.
Does anyone have any clear examples for getting the options from a picklist from either a standard Salesforce object or a custom object? I am sure I have to use one of the describe commands to do this, but I cannot find any examples for this. Thanks.
Better documentation on stylesheets and their usage is needed. I am running into issues with using the pbHeader class on S-Controls that I create. It doesn't display like the default Salesforce pages. Reference the following code.
 
Code:
<div class="pbHeader">
         <table  border="0" cellpadding="0" cellspacing="0">
             <tr>
                 <td class="pbTitle"><img src="/s.gif" alt="" width="1" height="1" class="minWidth" title="" /><h2 class="mainTitle">Salesforce Development Documentation</h2></td>
                 <td class="pbButton"><input value=" Edit "  class="btn" name="edit" title="Edit" type="button" /></td>
             </tr>
         </table>
     </div>

 
If you go to the Account tab or any other default Salesforce page, you get a nicely formatted button bar with in the bPageBlock div. If you use the code above on a custom page you get something totally different. The button appears with a white background and kind of outside the bPageBlock div.
Does anyone have any clear examples for getting the options from a picklist from either a standard Salesforce object or a custom object? I am sure I have to use one of the describe commands to do this, but I cannot find any examples for this. Thanks.
I have created an scontrol and have set the scontrol as the override for the Edit button.
 
At present I simply want to display an Alert with the Account.Id value, but I do not seem to be able to get the Account.Id value.
 
If i use the line,  alert("Account ID = ");  
Then I get an alert box to pop up and the View page for the account re-displays properly.
 
If I use the line, alert("Account ID = " + {!Account.Id});
Then no alert box is displayed and the View page goes blank. It is as if the Account.Id is nothing/non-existant.
 
How can I display the Account.Id?
 
Thanks.
 
 
Here is the scontrol code:
 
<html>
<head>
<script src="/soap/ajax/8.0/connection.js">
</script>
<script>
function init()
{
var s
alert("Account ID = " + {!Account.Id}); //this does not work
alert("Account ID = "); //this works
this.parent.location.href = "{!URLFOR($Action.Account.View, Account.Id)}";
}
</script>
</head>
<body onload="init()">
<p>&nbsp;</p>
</body>
</html>
  • January 22, 2007
  • Like
  • 0
Can I send an email through Scontrol? On running SControl I want to send email notification to specific users....
Can it be done usinf SControl?
If Yes then how?
 
Waiting for reply.
 
Ragards
Vaishali.
 
 
Does anyone know, by chance, of a listing (formal or informal) of the CSS files which salesforce.com uses and what they use each one for?  I presume they have two sets, one for each skin.  I will do some "view source" and some analyzing, but just wondered if this was already out there somewhere so I can make sControls that conform to the look and feel of salesforce.