You need to sign in to do that
Don't have an account?
Riapatel
VF page
Hi,
I created a visual force page and controller class.In that vf page i saved a record. How do i show the same record which i saved now in next vf page after clicking save button ? can i do that using recordid?
I created a visual force page and controller class.In that vf page i saved a record. How do i show the same record which i saved now in next vf page after clicking save button ? can i do that using recordid?
redirect to new VF page with record ID and use <apex:Detail tag to show all detail
For example, if 001D000000IRt53 is the account ID, the resulting URL should be: https://Salesforce_instance/apex/myPage?id=001D000000IRt53
Option 2:-
User below to show record detail
Related link for u:-
http://salesforce.stackexchange.com/questions/4798/how-does-apexdetail-work-can-we-show-layout-for-a-new-record
https://www.salesforce.com/docs/developer/pages/Content/pages_quick_start_tabs.htm
Please let us know if this solution will help you.
All Answers
public class TaskoneCTR {
public string Pname1{get;set;}
public PageReference MYsave() {
position__c ps1 = new position__c();
ps1.name=Pname1;
Insert ps1;
return page.VFtasktwo;
}
}
redirect to new VF page with record ID and use <apex:Detail tag to show all detail
For example, if 001D000000IRt53 is the account ID, the resulting URL should be: https://Salesforce_instance/apex/myPage?id=001D000000IRt53
Option 2:-
User below to show record detail
Related link for u:-
http://salesforce.stackexchange.com/questions/4798/how-does-apexdetail-work-can-we-show-layout-for-a-new-record
https://www.salesforce.com/docs/developer/pages/Content/pages_quick_start_tabs.htm
Please let us know if this solution will help you.
Mark this as answer if it works for you.