You need to sign in to do that
Don't have an account?
onstate.nkeeney
Launching an S-Control from a Trigger?
Hey all,
I have an Apex Code trigger which I would like to "launch" an S-Control when it executes. The S-Control really just contains a bit of JavaScript code, so my ultimate goal is to execute a snippet of JavaScript code when the Trigger runs. Is there any way to do this?
Thanks!
-Nathan
I have an Apex Code trigger which I would like to "launch" an S-Control when it executes. The S-Control really just contains a bit of JavaScript code, so my ultimate goal is to execute a snippet of JavaScript code when the Trigger runs. Is there any way to do this?
Thanks!
-Nathan
Maybe you could give me an idea of a workaround for what we're trying to do:
We wish to send an API command from our (external) servers to set a variable on an object, say: a UserID on our custom object. We then want to cause a "Screen Pop" - a popup window (or tab) to display which shows the detail view of that user (Account, Contact, etc) -- automatically.
The first and second parts are working - we can use the API to set the UserID we wish to display, and then we have a WebLink which causes that user's detail page to display.... we just need something to automatically "click" that link -- or otherwise cause the JavaScript on it to execute... any ideas? Triggers? Workflows? S-Controls?
Thanks!
-Nathan
you could use the api to create an event with a reminder, only the due time is now.
that should pop the reminder, which has a link to the desired page.
or, build your own polling scontrol that is placed on the left side bar as an inline scontrol and checks for the new user id matching their own, and perform the popup and navigate functions.
-Nathan
One question, though, is how do I put a custom S-Control in the sidebar? I tried using the Customize section of the Setup screen, but it appears to only allow adding s-controls to the home page layout, not to the sidebars of all pages.
Anyway, thank you very much for your excellent suggestions. :)
-Nathan
~ sfdcfox ~
I looked at the fieldLevelHelp app you posted, but I don't see any inline S-Controls in the side bar, except the Message Window... is that what you meant? I couldn't see anything in the Setup section that shows me how to inline an S-Control into that sidebar... Could you start me out in the right direction? Thanks!
-Nathan
Basically, you write an S-Control, then create a custom home page component of type "HTML", choose the "show HTML" checkbox, and type in the following code:
<iframe src="/servlet/servlet.Integration?lid=XXXXXXXXXXX" style="display: none"></iframe>
After you save this change and add it to the home page sidebar, it will execute on any page that includes the sidebar. The "lid" parameter is the ID of the S-Control to execute.
~ sfdcfox ~
Thanks again,
-Nathan