You need to sign in to do that
Don't have an account?
SS Karthick
Passing value to controller
Hi Folks,
Can anyone tell me how to pass the id value to the controller of current page??
Give some sample programs if possible
Thanks in advance
Karthick
Can anyone tell me how to pass the id value to the controller of current page??
Give some sample programs if possible
Thanks in advance
Karthick
To get Id from the url parameters, use following code in controller:
Please refer the below links for more details.
https://developer.salesforce.com/forums/ForumsMain?id=906F000000093yWIAQ
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008qv3IAA
https://developer.salesforce.com/forums/ForumsMain?id=906F000000096stIAA
Please mark it best if it helps you.
Regards,
Grazitti Team
www.grazitti.com
All Answers
This should help: http://www.mindfiresolutions.com/How-to-pass-ID-in-Visualforce-1578.php
Thanks,
Shashank
http://www.mindfiresolutions.com/How-to-pass-ID-in-Visualforce-1578.php
To get Id from the url parameters, use following code in controller:
Please refer the below links for more details.
https://developer.salesforce.com/forums/ForumsMain?id=906F000000093yWIAQ
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008qv3IAA
https://developer.salesforce.com/forums/ForumsMain?id=906F000000096stIAA
Please mark it best if it helps you.
Regards,
Grazitti Team
www.grazitti.com
In the controller use the below code:
Id RecordID = System.currentPageReference().getParameters().get('id');
RecordID contains the ID of the current page.
Regards,
Madhan Raja M
http://www.mindfiresolutions.com/How-to-pass-ID-in-Visualforce-1578.php
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008qv3IAA