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
PBS_IC786PBS_IC786 

S-control within an S-control

Is it possible to do a window.open and launch another Scontrol from within an Scontrol?
Execute EZSAASExecute EZSAAS

Sure, see this: Code:

window.open("{!URLFOR($SControl.YOUR_CONTROL_NAME)}")


 

PBS_IC786PBS_IC786
Thank you.  I appreciate that.  But how can I pass an Id value to the control since it needs the Id of the object's scontrol which I am calling it from...
Execute EZSAASExecute EZSAAS
When launching this new window, pass a request param to your Scontrol that gets called and use {!$Request.PARAM} in your SControl.
Then check for the merge field {SOME_OBJECT.Id} and this request field and use whichever is available.
Angel118Angel118


Execute EZSAAS wrote:
When launching this new window, pass a request param to your Scontrol that gets called and use {!$Request.PARAM} in your SControl.
Then check for the merge field {SOME_OBJECT.Id} and this request field and use whichever is available.


Hi,
       I dint get this, can u explain a bit  more on this..
I also need to launch a S-Control from a S-Control.

Thanks in Advance,
Angel