Wizard_IT
asked on
CRM 2011 - JScript Math Calculation (Weighted Probability)
On CRM 2011 I have an Opportunites form (standard)
I have created 4 new fields
1) Estimate High (new_estimatehigh)
2) Estimate Low (new_estimatelow)
3) Probability (%) (new_probability)
4) Weighted Probability (new_weightedprob)
I Basically need the following calculation to be done =Probability%*(Est.High+Es t.Low)/2
I then need the answer to appear in Weighted Percentage
I would like this done in JScript as the workflows are pretty useless unless anyone can suggest otherwise?
I have created 4 new fields
1) Estimate High (new_estimatehigh)
2) Estimate Low (new_estimatelow)
3) Probability (%) (new_probability)
4) Weighted Probability (new_weightedprob)
I Basically need the following calculation to be done =Probability%*(Est.High+Es
I then need the answer to appear in Weighted Percentage
I would like this done in JScript as the workflows are pretty useless unless anyone can suggest otherwise?
ASKER
I get the following error:
Field: Window
Event: onload
Error:Object Expected
Field: Window
Event: onload
Error:Object Expected
Are all those field names correct? Also are they all int fields or are some picklists or something else?
ASKER
new_estimatelow/new_estima tehigh - Currency Precision
weightedprob - Decimal Number
closeprobability - Whole Number
I have double checked all of the names (probability is closeprobability which I renamed in the line of code)
The System Field (closeprobability) is the only field that when you make a change it doesn't throw an error. All the other fields just show an error (Error: Object Expected)
weightedprob - Decimal Number
closeprobability - Whole Number
I have double checked all of the names (probability is closeprobability which I renamed in the line of code)
The System Field (closeprobability) is the only field that when you make a change it doesn't throw an error. All the other fields just show an error (Error: Object Expected)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
crmForm.all.new_weightedpr