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
Maddy123Maddy123 

DML in S-Controls

Hi,

    Can we use Apex DML statements in S-Controls ?

Please, share if anyone kows about this.

Thanks.

werewolfwerewolf
All the DML statements are available in the AJAX Toolkit for use in Scontrols: insert, delete, and update.  Examples of their use can be found here:

http://www.salesforce.com/us/developer/docs/ajax/Content/sforce_api_ajax_more_samples.htm#kanchor37

(other samples are also included in that doc, I just posted one of the links -- look up the AJAX Toolkit Developer's Guide for the rest).
mtbclimbermtbclimber
If you are looking to use Apex why scontrols instead of Visualforce ?