function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
stcforcestcforce 

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;

}

bob_buzzardbob_buzzard

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

stcforcestcforce

thanks, that's helped me a lot.