You need to sign in to do that
Don't have an account?

Updating a date field based on date/time field.
My App contains CTC field and basic field
When i entered current CTC as 3,60,000
my Basic field is comming as 15000
formula is (Current CTC/12)*50%
Basic=((Current_CTC__c/12)*0.50)
how i write this code i dont want to caliculate by manul please reply to this
You are not clear enough!
You have the formula in hand What do you want to do ?
If you want to calculate the Basic automatically you can create a formula field using the formula you stated. This will automate your process.
Use your formula to create the field "((Current_CTC__c/12)*0.50)"
For further deatils :http://login.salesforce.com/help/doc/en/customize_formulas.htm
Why do u want to write a code for this. The Basic field is a formula field is it ?
Which value you want to make dynamic so that you want to write code? It is fine in Formula field I think.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks