You need to sign in to do that
Don't have an account?

after click a save button , record display in vf page
I am trying to display the record name (Inchead.name) in vfpage after click the save button(display in same page).. but "{!Inchead.id}" is working fine.. but {!Inchead.name} is not displayed in vf page
public Incident__c getInchead() {
if(Inchead == null) Inchead = new Incident__c();
return Inchead;
}
public void save(){
Insert Inchead;
}
Vf
<apex:outputText value="{!Inchead.name}"/>
Hi,
Could you please share complete VF page, it will give complete visibility in your requirement.
Happy to help you!
i posted sample code.. it is 1000 line code.. this is the major code.. it is under in pageblock section... like 10 componenent..after click save button , related record name in display in same page.. It is working in ID's
@diya,
Is your requirement like, on clicking save, record gets saved and next time you load same page, it should display that name on page? Correct me if I am wrong.
after save I am not load the page ... bcos i am using output panel ... same page it will dispaly record name.. but record id showing.. pblm in name(inchead.name)...but inchead.id working