Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

JavaScript vs Business Rules for Math Functions

$
0
0

I am currently trying to multiply two existing fields (field1 and field 2) and the to divide the result by 100 to return a percentage to an existing field called field3. Which method would adhere to best practices the closest (if either):

Scenario A:

Create a hidden field on the form to store the value of field1 * field 2 and then divide the hidden field by 100 (using a Business Rule to handle all the calculations)

Scenario B:

Use JavaScript to handle the entire calculation and place OnChange Event Handlers on field1 and field2

My main focus is to complete the calculation and to reduce the amount of time the form takes to load.

Thanks,

Ben


Viewing all articles
Browse latest Browse all 46379

Trending Articles