February 2012

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