6

I have a visualforce page displaying a list of Event objects that need users to update. I have an 'Update link' that takes them to the edit screen for the Event, but upon Save, it brings up the list page. I want to take them to their home page, where this list VF page is nested.

<apex:page sidebar="false" showHeader="fale" standardController="User" extensions="UsersEventsExt2">

  <apex:pageBlock title="Meetings to Update">
    <apex:pageBlockTable value="{!Events}" var="c">

      <apex:column headerValue="Click to Update"><apex:outputLink value="{!URLFOR($Action.Event.Edit,c.id)}" target="_blank">Update Meeting</apex:outputLink></apex:column>

       <apex:column headerValue="Subject"><apex:outputLink value="{!URLFOR($Action.Event.View,c.id)}" target="_blank">{!c.subject}</apex:outputLink></apex:column>

       <
    </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>

Thanks!

1 Answer 1

9

When saving a new record, you can use the saveURL parameter:

{!URLFOR($Action.Contact.NewContact, c.id, ['saveURL'='/home/home.jsp'])}

When editing an existing record, you can use the retURL parameter:

{!URLFOR($Action.Event.Edit, c.id, ['retURL'='/home/home.jsp'])}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .