0

i am using stadardcontroller Opportunity on my visualforce page but my concern is i don't want to reload that Opportunity detail page when i click on Save Button...

Code :

<apex:commandButton value="Save" action="{!Save}" reRender="Pb1" />

What should i need add in this line ?

Help me out....

Thanks

2 Answers 2

6

try action="{!quickSave}" Standard Controller action

6
  • Cool....it's Working, Now it's not reload the whole detail page.. Thanks a ton :)
    – Nihar
    Commented Mar 30, 2016 at 23:03
  • @Olejsiy can we have same thing for Edit action ??
    – Nihar
    Commented Apr 1, 2016 at 18:52
  • Edit on standard page layout? I afraid you have no control on this.
    – o-lexi
    Commented Apr 1, 2016 at 19:06
  • ohhh. ACtually the thing is i have two pageBlocksection and i put QuickSave action on first PageBlocksection and it's working fine and rerender it on the next pageBlocksection but Now, i want one button on Second pageBlocksection with Name Edit and that button must rerender the first pageBlocksection with Edit Mode...is it Possible ?
    – Nihar
    Commented Apr 1, 2016 at 19:25
  • You better to create another question, and provide some code
    – o-lexi
    Commented Apr 1, 2016 at 20:58
1

Put rerender="nothing", where "nothing" is an invalid element Id if you don't want to rerender anything on the page. Also, make sure you override the Save method and change the return type to be void and not PageReference.

1
  • 1
    but i already used reRender in my code line
    – Nihar
    Commented Mar 30, 2016 at 22:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .