You need to sign in to do that
Don't have an account?
shan876
How to create an edit page?NEED HELP PLEASE
Hi all:
My scenario:
A user clicks on a new button that would take the necessary info from account record and place it into the edit page of the custom object filling in all the fields necessary from the Account record selected.
My scenario:
A user clicks on a new button that would take the necessary info from account record and place it into the edit page of the custom object filling in all the fields necessary from the Account record selected.
- Do I have to re-create the page in VF in edit mode ? If yes, then does anyone know how to create two columns and mock up the page directly the same as the edit page for that object???
- Can I link to the edit mode of the Page and do it that way?
- Does anyone have an example of this please...
Could you create a lookup relationship on the custom object and use formula fields to pull in the information from the account, then just use the new button in the related list for the custom object on the Account detail page?
Here is some controller code that can get you there:
VF page can be simple, I believe (didn't test this)...
<apex:page controller="yourController" tabStyle="Pipeline__c" action="{!redirectToNew}">
</apex:page>
...and, of course, to put this on a button, it would need to be an extension of a standard controller.
Potential issue with my previously suggested solution is that the record then exists (possibly too soon). If the user clicks cancel, then there's an empty record out there hanging out in the system. Good to handle that situation.
The redirection works, except I need the neccessary fields filled in before the user clicks save??