You need to sign in to do that
Don't have an account?
street
Update the date filed on pagelevel
I have a date filed(Datefiled12) which is displayed in Visualforce page and a formula filed(Updatedate) of datetype "date", whenever Datefiled12 is changed on visual force page then Updatedate has to updated with value equal to Datefiled12 +4 days.
EG:
when user select the below value on visualforce page
Datefiled12 = 1/5/2012
then Updatedate = 1/9/2012
Can it be possible on page level without any button click?
Class:
While testing u need to create a new field new date on opportunity. Also enter all the field values(Name, stage etc) before you test for the same.
All Answers
Are u displaying the formula field on the VF page as well. In case you are the change will not show on the page until you save the record.
One thing that can be done is show the users a dummy field on the VF page, rerender the field once the user selects some value on the original date field and then in the database the formula field will calculate the value on its own.
let me know in case you need more on this
Yes, im displaying the formula filed on VF page.
you mean, rerender the page once the original date field updated.
Sample code on it
I dont have a sample code for the same. Let me give it a try and i ll post it here!!
Class:
While testing u need to create a new field new date on opportunity. Also enter all the field values(Name, stage etc) before you test for the same.
Ok, ill try. will get back to you..
Thanks.
Its working, Thanks Alot n for ur effort.
Your Welcome!!!