- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 06:34 PM
Hello Everyone.
I am trying to create a business Rule to take the number from u_number_of_standard_server_software (right now I have this field as a string, I can change to integer if that will help).
Multiply it by 6,439
Get the answer and populate it in u_standard_server_software_annual (read-only Currency field)
Here is my code
Thanks for all your help. I will make sure i mark your advice as helpful or correct if you can help me solve this problem.
Denee
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 08:53 PM
In your business rule, you can try like this,
var value = parseInt(current.u_number_of_standard_server_software)* 6349;
current.u_standard_server_software_annual_amount = current.u_standard_server_software_annual_amount + ';' + value;
But i believe this can easily be done through onChange() client script on u_number_of_standard_server_software field to get the calculation done, like
var val = (parseInt(newValue) * 6349);
g_form.setValue('u_standard_server_software_annual_amount', val);
Let's see if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 06:37 PM
what is the question here ? what is that you are looking to achieve ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 06:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 08:30 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 08:53 PM
In your business rule, you can try like this,
var value = parseInt(current.u_number_of_standard_server_software)* 6349;
current.u_standard_server_software_annual_amount = current.u_standard_server_software_annual_amount + ';' + value;
But i believe this can easily be done through onChange() client script on u_number_of_standard_server_software field to get the calculation done, like
var val = (parseInt(newValue) * 6349);
g_form.setValue('u_standard_server_software_annual_amount', val);
Let's see if this helps.