+ Start a Discussion
srikanth julakantisrikanth julakanti 

multiple pages data saved in one page

How the data given in multiple pages will store when we click on save can any one ping some code or syntax
Deepak Kumar ShyoranDeepak Kumar Shyoran
If you are using Standard  controller on your page then you can use Standard action Save to save your data for that particular page. And in case of custom Controller you need to use Action funtion or need to use apex command button action and bind method in action attribute of either actionfunction or command button.

<apex:page controller="MyController" >
<apex:commandButton action="{!saveData}" value="Save"/>
</apex:page >


public class MyController {

public Account acc {get; set;}
public void saveData() {
 acc.Name = 'updateName' ;
update acc ;