Auto complete text box in Salesforce
Auto completion of text box is an important feature to be added in many projects. Use the below codes in your project for auto completion of text box in Salesforce. ....
Auto completion of text box is an important feature to be added in many projects. Use the below codes in your project for auto completion of text box in Salesforce. ....
Note: Disable the development mode. <apex:page showChat="false" wizard="true" sidebar="false" > <!-- Javascript --> <script type = "text/javascript"> function winClose() { self.close(); } </script> <!-- End of ....
Visualforce page: <apex:page showChat="false" wizard="true" sidebar="false" controller="MemberPopup" > <!-- Javascript --> <script type = "text/javascript"> function winClose() { self.close(); } </script> <!-- End of Javascript--> <apex:form ....
Visualforce code: <apex:page sidebar="false" controller="MemberPopup" > <apex:form > <apex:pageBlock id="membAdd" > <apex:pageblockSection > <apex:pageBlockTable value="{!memberAddList}" var="memb"> <apex:column headerValue="Member Name"> <apex:inputField value="{!memb.Name}"/> </apex:column> <apex:column ....
To write/develop a unit-test/test class for Salesforce Apex Triggers, then in the Test Class, we have to do the DML operations based on the events used in the Apex Trigger. ....
window.onload or action attribute in apex:page can be used as OnLoad function in Salesforce Visualforce page. Method 1(Calling Javascript): <script type = "text/javascript"> window.onload=function() { alert("Hi"); }; </script> Method 2(Calling ....
List<Account> acct = new List<Account>(); String sql = 'SELECT Name,Phone,External_ID__c,Type,Industry,AccountNumber,Description,FAX,SLA__c,Rating,(SELECT Name,StageName,CloseDate,Probability FROM Opportunities) FROM Account WHERE ID=:localId'; acct = Database.Query(sql); for(Account ac:acct) { List<Opportunity> opptys = ....
Syntax: <apex:inputSecret value="{!inputValue}" id="theSecretInput"/> Example: <apex:inputsecret id="pwd" value="{!pwd}"/>
To display checkbox options in vertical direction, layout property is used. Example: <apex:selectCheckboxes value="{!relObjs}" layout="pageDirection"> <apex:selectOptions value="{!relObj}"/> </apex:selectCheckboxes>
Example: String sql = 'SELECT Name,Id FROM Account WHERE Name Like '%' + acctName + '%''; Here 'acctName' is a variable.