You need to sign in to do that
Don't have an account?

Where to store S-Control setup/preferences data?
Hi- Apologies if this is a basic question but I'm developing an S-Control and am looking for the best way to store some simple preferences data for the s-control. There will be an html user interface with some checkboxes and radio buttons and I'd like to store the user's preferences somewhere in the user's profile and be able to recall the settings inside the S-Control.
There must be an easy way to do this but I just can't find any info anywhere!
Thanks!
Nicholas
There must be an easy way to do this but I just can't find any info anywhere!
Thanks!
Nicholas
I will likely use the custom object method unless someone knows of a better way!
Cheers,
Nicholas
Custom objects are great this way. Imagine a custom object with reporting disabled, no tab, no lookup relationships to any other object, and a blank layout. The user would never know the object exists (unless they're toying with the Excel Connector or Data Loader, or the Setup screens), and yet it would be able to save/load their preferences directly through the API. It's clean, tucked away, and very easy to use and customize. I actually thought of doing something like this for other stuff I've played with in Salesforce (for example, a "password manager" object for single-sign-on to other web services), and it makes sense. Uses virtually no storage space (2kb per user), can hold a large amount of configuration data, and loads in a fraction of a second in most cases when using the latest AJAX toolkit. You could make it even better these days with an Apex Code web services call (web services calls currently ignore security), which means you could make it completely invisible to the user unless they knew how to access the web service directly-- you could hide the entire object!
Thanks!
Nicholas