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
Eyal_WizEyal_Wiz 

Update Salesforce fields via S-control

I've created an HTML S-control which calculates some fields and display the sum of those fields.
The thing is that I need to store those fields in a parmenant
 
Code:
<html>
<head>
<script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script>

<script text="javascript">
var aid="{!Class__c.Id}"; 

 
Eyal_WizEyal_Wiz

I accidentaly launched my quistion without completing it :-)

As I started writing, I want to keep the fields that I've calculated with javascript in a parmanent custom fields that i've created.

Is it possible to such a thing throw HTML s-control? If yes- what's the syntex for doing such thing? for example - lets say I want to update the "Class_c.Id" that I displayed in my last post, what should I write?Code:

var aid="{!Class__c.Id}"; 


 

 If not, what's the best way to do that?

Thanks!
Eyal

RickyGRickyG
You can access data in a Force.com object through the API.  Check out the documentation for the AJAX toolkit for more information.

Hope this helps.