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
Abhisek BhattaAbhisek Bhatta 

Calling s-control from itself

Hi, Is it possible to call a s-control within itself? I have written a custom s-control and want to call it from itself on a button click. Is it possible?
Greg HGreg H
If you were calling a second sControl from your existing sControl you'd be able to use the URLFOR function to link the two.  However, since you are trying to reload the same sControl I suggest you use the actual url for the sControl in the button as an onclick parameter.
Code:
/servlet/servlet.Integration?lid=000000000000000&ic=1

Just replace the 000000000000000 from the string above with the 15 character id for your sControl.
 
Hope this helps,
-greg