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

Can we insert records while page is loaded
HI ,
Can we insert the records of any object when page is loaded? Please reply me.
Regards,
Rajesh.
You need to sign in to do that
Don't have an account?
HI ,
Can we insert the records of any object when page is loaded? Please reply me.
Regards,
Rajesh.
Yes we can
1. Just write a method in you controller to perform the insertion.
2. Now put this method name to action attribute of your visualforce page.
Like
All Answers
Hi,
You can not perform DML operation inside a constructor.
You can follow a this blog from Bob Buzzard.
Hope this helps :)
Thanks,
Devendra
Yes we can
1. Just write a method in you controller to perform the insertion.
2. Now put this method name to action attribute of your visualforce page.
Like
Hi Shiv Shankar,
Thanks it's working.
Thanks
Rajesh