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
NickNick 

How do I send user to Opportunity page after an Scontrol is done?

I'm using an Scontrol as a WIL, displayed in a salesforce.com window with sidebar. In this configuration, my control is actually displayed inside of an html IFRAME, which is fine.

When my Scontrol finishes what it needs to do, I'd like to send the user automatically to an Opportunity page. However, if my html code uses a javascript call to go to https://na1.salesforce.com/00630000000abcd, the new Opportunity page shows up inside the little frame, instead of being displayed in the full IE window. I tried the "frontdoor" technique (as described elsewhere in this forum), but that got the same results.

From inside my Scontrol, how can I send the user to an Opportunity page without being stuck inside of the Scontrol IFRAME?

Thanks,
Nick

adamgadamg
Good question. Have you tried to get a handle to the top window, and set the location from there? Something like parent.location?
NickNick

Thanks for getting me on track. The statement:

    self.parent.location.href="https://na1.salesforce.com/" + "{!Opportunity_Account_ID}";

did the trick.

Nick

FinTechFinTech
Do you know if you can update something, like a checkbox, on the calling page?