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
Dman100Dman100 

calling a s-control from a custom link

i'm new to writing s-controls and I'm trying to accomplish the following.  I want to create a link (custom link) and when the custom link is clicked it opens a new window and calls a custom s-control.
 
If there are any examples that explain how to accomplish this, it would be greatly appreciated.
 
thank you.
RexRex

Go to setup > then the object where you want to create a custom link.

Go to the Buttons and Links. Click on new

Give a label > select Detail Page link > Select the Behavior as New Window> Content Source should be Custom S-Control

and then select the s-control.

Its done yet. Now add this link to the page layout of the object that you just created. simple :-)

gv007gv007
Rex it is not helpful to above scenario
dmsx2oddmsx2od

I'd say that Rex is pretty much spot-on.  The only thing I would add is to edit the "Window Open Properties" to support the new window and to specify which components (status bar, URL, toolbar, etc) are shown.

Rex, great step-by-step.

 

Yes, this does assume that the user knows how to code S-Controls, but that seems a much larger question and beyond the scope of this thread.