You need to sign in to do that
Don't have an account?
SL Tan
S-Control Code to sum up amounts in a custom object
Hi
I wonder if anyone can help me here. I have a custom object with a number of item amounts that I would like to use an S-control to sum up the amount as a Total Amount (Not using the Custom Formula for this case) Does anybody have a coding sample that can be shared with me, to select the item amounts and then push to sum them up?
Any pointer will be highly appreciated
Thanks in advance
SL
I wonder if anyone can help me here. I have a custom object with a number of item amounts that I would like to use an S-control to sum up the amount as a Total Amount (Not using the Custom Formula for this case) Does anybody have a coding sample that can be shared with me, to select the item amounts and then push to sum them up?
Any pointer will be highly appreciated
Thanks in advance
SL
If you're using a Button/Link, you may replace the red text with {!RequireScript("/soap/ajax/9.0/connection.js")}. Salesforce will include your JavaScript file with all the other header scripts on the page.
~ sfdcfox ~
Hi sfdcfox
Thanks for your help and coding sample which I appreciate very much. I did some modification and tested using the S-control but the result is a blank. Firebug indicates a Servlet Integration matter. I hope you can help me point out what is the problem if I append my code below. Sorry for any inconvenience caused
Many thanks in advance
SL
Code:
Hi
There is no master detail relationship in my case. Sorry I think my original post was not clear. All the item amounts are in the same object. I could not use Formula to add the amounts as it is beyond the compile limit so I am trying to use S-Control to push out the total
Thanks
SL
Assuming the 12 amount fields default to 0, and you are trying to simulate a formula field,
Why not this:
Code:
Hi Sean
Thanks for your kind advise. Appreciated
Best Regard
SL