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>
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
Reviewed by dasfrogpractice
on
07:46
Rating:
code works.Keep sharing salesforce Online Training
ReplyDelete