function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
siddik s 6siddik s 6 

inline vf page load home page not a correct content?

User-added imageUser-added image
Harshit Garg 6Harshit Garg 6
Hi,

Could you please share your code.

Thanks,
Harshit Garg
siddik s 6siddik s 6
Controller:
public class DocumentListExtension {
    public Resume__c Res{get;set;}
    public List<Document> DocList{get;set;}
    public DocumentListExtension(ApexPages.StandardController controller) {
        Res=(Resume__c)controller.getRecord();
        String newSearchText = '%'+Res.Unique_Number__c+'%';
        DocList=new List<Document>([select id,Name,CreatedDate from Document where Name like :newSearchText]);
    }

}


VF Page::
<apex:page standardController="Resume__c" extensions="DocumentListExtension" showHeader="false" sidebar="false" > <apex:form > <apex:inputHidden value="{!Resume__c.id}"/> <apex:inputHidden value="{!Resume__c.Unique_Number__c}"/> </apex:form> <apex:pagemessage severity="INFO" rendered="{!DocList.Size == 0}">No Resume Uploaded...</apex:pagemessage> <apex:pageBlock title="Your Resumes" id="block" rendered="{!!(DocList.Size == 0)}" > <apex:pageBlockTable value="{!DocList}" var="doc" > <apex:column headerValue="Resume Name" Title="Resume" > <apex:outputLink value="/{!doc.Id}" target="_blank" >{!doc.Name}</apex:outputLink> </apex:column> <apex:column headerValue="Updated Time" value="{!doc.CreatedDate}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
siddik s 6siddik s 6
Harshit Garg 6