You need to sign in to do that
Don't have an account?
Edwin K
Visualforce Page shown in edit mode on Page layout
Hi all,
I have a question is it possible to show visualforce page on the page layout when I hit edit button ? My case is I want to show the visualforce page and standar page layout at the same time on page layout in edit mode. Is is possible to do that? Or maybe there is other suggestions for may case would be great.
Thanks
Regards,
Edwin
Hi Edwin,
I am not entirely sure what you want to achieve but this is what Visualforce allows you to do from Visualforce dev guide (
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_intro_what_is_it.htm?SearchType=Stem) :
Developers can use Visualforce pages to:
The relatedList tag allows you to render the related lists at the bottom of the page.
This is one of the possibilities, you could alternatively create a tabbed page which shows the detail page and then in the tab the sections that you want to edit as shown here:
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_quick_start_tabs.htm?SearchType=Stem . You need to change a bit the example to make the tabs part editable.
Lastly, I would consider also the new inline Edit feature in Visualforce which allows to have both view and edit on the same page at the same time:
http://developer.force.com/releases/release/Spring11/Visualforce+Inline+Editing
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm?use%20of%20visualforce%20page
Please keep in mind that you need to override the standard edit button for the object and that the original edit functionality will be hidden in general for all users.
I am not sure original poster got his answer from this. I have similar issue. I am rendering object in my own area, say I create two column table. on column 1 I display object link, when user user clicks on the column1, I display object detail in column2, with all standard buttons (i.e. using <apex:detail>). Now when I click on edit button, it brings me out from my table based detail page into vf default standrd edit page for the object. I would like to keep user in the same table based view in column2 of my table. is this possible? how?
I think adding visualforce pages as components to a page layout is intended to suppliment the 'detail' on the page, and not intended for editing.
When I create a new record of my custom object or edit an existing one, I need the edit page to show the user an information. The information is not related to a single field, but is a general information about what and how to enter data so I can't simply put it in an info bubble (which offers not enough space & formatting anyway).
So I want this VF page appear in the edit mode of the object to inform the user.
for your reference you can visit: https://success.salesforce.com/ideaView?id=08730000000Br8CAAS
If you want to not display the contents of the component in New OR Edit mode you are really in trouble as there appears to be no method for determinig the current mode. An object id is available in both viw and edit and there is no method on StandardController you can call differentiate.
1) Add the VF page as a component on the Page Layout. This displays your "view mode" page in the object's detail page view mode.
2) Have a button on the VP page that changes the embedded page to a different ("edit mode") VF page.
For me, the problem is writing the code to swap my VF page, rendered as a component on an object detail page, to a different one (and back again). Has anyone encountered this?
The use case for this is that a standard Related List can only have 10 columns. My related list needs 13. I've written an edit mode VF page that replaces the related list with a pageBlockTable, displaying and manipulating the related table's records using inputFields. I also have a view mode version that simply displays the related list values and has a button to switch to Edit mode. Just need to get that button to work.
my need is something like you discussed
"The use case for this is that a standard Related List can only have 10 columns. My related list needs 13. I've written an edit mode VF page that replaces the related list with a pageBlockTable, displaying and manipulating the related table's records using inputFields. I also have a view mode version that simply displays the related list values and has a button to switch to Edit mode. Just need to get that button to work."
I need tochange the number of existing related list column to 13 .
i know we can use "<apex:relatedList list="Contacts" pageSize="20" />"
but i dont know how to open th VF page for the existing related list and modify it.??
any idea how to proceed ??
Thanks in advance..
dipti