Tuesday, May 19, 2015

Displaying record based on id value




<apex:page standardController="Bottle__c" >
  <apex:form >
  <apex:pageBlock >
  <apex:pageBlockButtons >
  <apex:commandButton value="Cancel" action="{!Cancel}" />
  </apex:pageBlockButtons>
 
  <apex:pageBlockSection >
   
  <apex:pageBlockSectionItem >
  <apex:outputText >Bottle Name</apex:outputText>
  <apex:outputField value="{!Bottle__c.Name}" />
  </apex:pageBlockSectionItem>
 
  <apex:pageBlockSectionItem >
  <apex:outputText >Bottle Price</apex:outputText>
  <apex:outputField value="{!Bottle__c.Price__c}" />
  </apex:pageBlockSectionItem>
 
  <apex:pageBlockSectionItem >
  <apex:outputText >Bottle Quantity</apex:outputText>
  <apex:outputField value="{!Bottle__c.Quantity__c}" />
  </apex:pageBlockSectionItem>
 
  <apex:pageBlockSectionItem >
  </apex:pageBlockSectionItem>
  <apex:pageBlockSectionItem >
  </apex:pageBlockSectionItem>
  <apex:pageBlockSectionItem >
  </apex:pageBlockSectionItem>
  <p> To display 1 record after the pageName?id=value<br/>
  <b>Note</b>: id value of the record ex: stdSet_Ctrl?id=value</p>
  </apex:pageBlockSection>
  </apex:pageBlock>
  </apex:form>
</apex:page>

0 comments:

Post a Comment

Promotions

Total Visits

web counter

Now Online

Users From

Ads

Popular Posts