apex:outputlink for Printable View

Using command link for printing a record



Simple displaying of the records using a recordSetVar and OutputLink to display the record values . 


Visualforce Page:

<apex:page sidebar="false" standardController="Student__c" recordSetVar="records">

  <apex:form >
      <apex:pageBlock >
          <apex:pageBlockSection >
              <apex:pageBlockTable value="{!records}" var="r">
                  <apex:column >
                  
                      <apex:outputlink value="https://ap1.salesforce.com/{!r.Id}/p?retURL=/{!r.Id}">{!r.Name}</apex:outputlink>
                  </apex:column>
              </apex:pageBlockTable>
          </apex:pageBlockSection>
      </apex:pageBlock>
  </apex:form>

</apex:page>






apex:outputlink for Printable View apex:outputlink for Printable View Reviewed by dasfrogpractice on 07:46 Rating: 5

1 comment:

Theme images by mariusFM77. Powered by Blogger.
Youtube Channel Image
Dasfrog Subscribe To watch more Salesforce Training
Subscribe