You need to sign in to do that
Don't have an account?
Alan Tang
How to popup a new S-Control from a S-Control page
I have created a S-Control for converting leads, and want to popup another S-Control for searching company from the convert leads S-Control.
Not sure if it is possible? If not, can we find other way to implement this?
window.location.href="{!URLFOR($SControl.EditLeadsOpenLongerThan30)}";
Other samples in the Getting Started PDF on the feature detail page...
http://blogs.salesforce.com/features/2006/12/embedded_mashup.html
Another option would be to include the functions.js file from salesforce and use their prebuilt "openPopupFocus" function. This will allow you to launch an sControl from an sControl without closing or redirecting the parent window.
Include this file within the HEAD tag:Code:
Include this HREF where you want the click to the new window to occur:Code:
You'll need to tweak the settings passed to the function to suite your needs. Like changing the width and height op the displayed popup window or including the menubar or directories but this function will get you what you need.
You'll also need to add the URL of your second sControl where I've written "Insert_URL_Of_sControl".
-greg