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

after click a save button , record display in vf page

     I am trying to display the record name ( in vfpage after click the save button(display in same page).. but "{!}" is working fine.. but  {!} is not displayed in vf page


public Incident__c getInchead() {
      if(Inchead == null) Inchead = new Incident__c();
      return Inchead;


public void save(){

Insert Inchead;






<apex:outputText value="{!}"/>




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




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( working

You may have to query the record based on the id and then use the name field.