Category Archives: Development

Jul 08

URL Hacking VisualForce Page

lookup field ID: prefix: CF suffix: __LKID var url_string = ‘/a0I/e?’; url_string += ‘retURL=%2F’ + contract_id; url_string += ‘&RecordType=’ + recordtype_id; url_string += ‘&CF00N300000068v7u=’ + oppt_name; url_string += ‘&CF00N300000068v7u_lkid=’ + oppt; url_string += ‘&00NV0000000Lhln=’ + dba_name; url_string += ‘&CF00N300000067vMi=’ + … Read More

Posted in Development, Main | Comments Off on URL Hacking VisualForce Page
Jun 21

SFDC VisualForce Page pageblocksection example

SFDC-VisualForce-Page-Example-SAVE <apex:page standardController="Contract_Addendum__c"> <apex:pagemessages /> <script> function checkedOverride() { var isChecked = document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.Override_Interest__c}').checked ; if(isChecked) { document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.LPC_Percent_Charge__c}').disabled = false; document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.Prime_Source__c}').disabled = false; document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.Bill_When__c}').disabled = false; } else { document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.LPC_Percent_Charge__c}').disabled = true; document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.LPC_Percent_Charge__c}').value =""; document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.Prime_Source__c}').disabled = true; document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.Prime_Source__c}').value = ""; document.getElementById('{!$Component.frm1.pblock.PBlockSectionEnrollment.Bill_When__c}').disabled … Read More

Posted in Development | Comments Off on SFDC VisualForce Page pageblocksection example
May 09

SFDC visualforce page global variables

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global.htm $Action $Api $Component $ComponentLabel $CurrentPage Example: {!$CurrentPage.parameters.RecordType} $Label $Label.Site $ObjectType Example: {!$ObjectType.Account.Fields.Name.Label} $Organization $Page $Profile $Resource $SControl $Setup $Site $System.OriginDateTime $User $User.UITheme and $User.UIThemeDisplayed $UserRole

Posted in Development | Tagged | Comments Off on SFDC visualforce page global variables
May 08

SFDC visualforce page IF Else example

<apex:pageBlockSection columns="2" id="pblockSection3" rendered="{!$CurrentPage.parameters.RecordType!='01230000000qxcM'}"> <apex:inputField value="{!my_Account__c.LPC_Percent_Charge_Demo__c}" id="oppNameInput2"/> <apex:inputField value="{!my_Account__c.Override_Interest__c}" id="disableInput" onclick="test();"> </apex:inputField> <apex:inputField value="{!my_Account__c.Prime_Source__c}" id="oppNameInput" required="false"/> <apex:inputField value="{!my_Account__c.Bill_When__c}" id="oppNameInput1" required="false"/> </apex:pageBlockSection>

Posted in Development | Tagged | Comments Off on SFDC visualforce page IF Else example
May 08

SFDC visualforce page get url parameters

{!$CurrentPage.parameters.RecordType} — get RecordType $CurrentPage.parameters.parameter_name <apex:page standardController="Account"> <apex:pageBlock title="Hello {!$User.FirstName}!"> You are displaying values from the {!account.name} account and a separate contact that is specified by a query string parameter. </apex:pageBlock> <apex:pageBlock title="Contacts"> <apex:dataTable value="{!account.Contacts}" var="contact" cellPadding="4" border="1"> <apex:column> <apex:facet … Read More

Posted in Development | Tagged | Comments Off on SFDC visualforce page get url parameters
May 07

SFDC Clone custom Object

  Create your new custom object with the name you want but don’t give it any fields yet. Download the Force.com IDE (if you don’t already have it) Connect it to your instance of Salesforce.com Set the metadata settings when … Read More

Posted in Administration, Development | Tagged | Comments Off on SFDC Clone custom Object