Posts

Showing posts from March, 2016

ActionStatus in salesforce

Image
---- visual force---- <apex:page controller="actionstatuscontroller">     <apex:form >         <apex:pageBlock id="pbid" >             <apex:pageBlockTable value="{!insertval}" var="ins" rendered="{!dsf}">                 <apex:column value="{!ins.id}"/>                 <apex:column value="{!ins.name}"/>             </apex:pageBlockTable>             <apex:actionStatus id="actionstatusid">                 <apex:facet name="start">                 <apex:image url="{!$Resource.loading}" /></apex:facet>             </apex:actionStatus>             <apex:commandButton value="Display Records" action="{!display}" status="actionstatusid" reRender="pbid"/>         </apex:pageBlock>     </apex:form> </apex:page> ----- Controllers ---- public c

apex:datatable> Datatable in Visualforce

Image
-- Visualforce-- <apex:page controller="mydatatable">  <apex:form >      <apex:pageBlock >          <apex:dataTable value="{!data}" var="dat" cellpadding="10" cellspacing="30" >                                     <apex:column >                       <apex:facet name="header"> Ids</apex:facet>                       <apex:facet name="footer"> Ids</apex:facet>                       <apex:outputText > {!dat.id}</apex:outputText>               </apex:column>                               <apex:column >                      <apex:facet name="header">names</apex:facet>                      <apex:outputText > {!dat.name}</apex:outputText>                      <apex:facet name="footer">names</apex:facet>               </apex:column>                                </apex:dataTable>

apex:PageBlockTable in Visualforce

This post Describing about using apex:pageblocktable and apex:column. --- Visual Force -- <apex:page controller="listpractice" sidebar="false" >  <apex:form >      <apex:pageBlock title="List">          <apex:pageBlockSection >                <apex:pageBlockTable value="{!allrecords}" var="rec" width="1200px">                                 <apex:column title="sdgsdgsd" headerValue="Form Ids" >                       {!rec.id}                   </apex:column>                   <apex:column headerValue="Name" >                        {!rec.name}                   </apex:column>                </apex:pageBlockTable>         </apex:pageBlockSection>      </apex:pageBlock>  </apex:form> </apex:page> --- Controllers -- public class listpractice {     public List<Account> allrecords { get; set; }     public List<