You need to sign in to do that
Don't have an account?
navigation problems
i wrote an action method that is using a page reference of a url to navigate from inside a custom component (inside a page embedded into the case standard layout). A call to a delete action method occurs and calls the page to reload.
When the page reloads (the desired behavior), the embedded page contains its own frame and subsequent action methods load in the embedded page section rather than the complete window. the url seems to have appended to it "inline=1" the action method that perfroms the navigation is
as follows, where theId is the id of the case.
public PageReference deleteX()
{
String name = ApexPages.CurrentPage().getParameters().get('emailid');
EmailMessage e = [select e.id from emailMessage e where e.id =:name]; //Id e = Id.valueOf(name);
database.delete(e);
PageReference acctPage =new PageReference('/'+theId);
acctPage.setRedirect(true);
return acctPage; //return null;
}
You'll need to refresh the parent page once the action method has completed.
Here's a blog post I wrote explaining how to achieve this:
http://bobbuzzard.blogspot.com/2011/05/refreshing-record-detail-from-embedded.html
thanks, that's helped me a lot.