Salesforce Visualforce Page

Salesforce

How to get a subquery field value using Apex?

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 = ....

Salesforce

Action Status decoration in Visualforce

Apex:   <apex:commandButton value="Find" action="{!find}" reRender="SearchList" status="SearchStatus"/>   <apex:actionstatus id="SearchStatus">     <apex:facet name="start">     <c:enhancedactionstatus BackColor="#efefef" borderColor="#336699" borderSize="3" height="50px" width="120px" Message="Loading..." messageStyle="color:darkred; font-size:11pt;font-weight: bold;"/>     </apex:facet>   </apex:actionstatus> Component: <apex:component ....

Salesforce

Getting checked checkboxes values using Salesforce Apex

Sample Code: Visualforce Page: <apex:page controller="SampleVisualforcePageController" id="pg"> <apex:form id="frm"> <apex:messages/> <apex:pageblock id="AccountsList" title="Accounts List" > <apex:pageBlocktable value="{!listAccounts}" var="acc" > <apex:column title="Select" > <apex:inputCheckbox value="{!acc.selectedBool}"> </apex:inputCheckbox> </apex:column> <apex:column value="{!acc.objAccount.Name}"/> </apex:pageBlocktable> <apex:pageblockButtons ....