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
sanshasansha 

Need some basic help with my first task

Hi,
 
This is my first task in Visual Force.
I have done the following steps:
1 Create a Custom Object.
2 Create two Visual Force pages using the custom object name as the StandardController.
    Page 1 has all input fields 
    Page 2 has the same fields but are output fields.
3 Override the View commandbutton action in Setup --> Create --> Objects --> <New Object Name> --> Standard Buttons and Links to Page 2
4 Override the Edit and New command button action in Setup --> Create --> Objects --> <New Object Name> --> Standard Buttons and Links to Page 1
 
The issue is that when I click the new button in Page1 and save the record it opens Page 2 showing the details entered.
However if I edit any record and click the save button it takes me to Page 2 which is blank (the URL in this case is does not show the parameter ?id=<recordid>.
 
Please suggest.
sanshasansha
This has been closed.
 
I have created a controller extension and overriden  the save action.
 
Thanks