You need to sign in to do that
Don't have an account?
RajaMohan
Help needed for VF Snippet
Hi Folks,
I have changed the Account as Companies now. I just want the list of companies as a picklist value in another object called Company Schemes. I just tried of using the VF snippet and added the same into the page layout. But It did not populate the values. Please help me by giving the relavent idea on this. Some codes will be much helpful.
Thanks
Raj
Make sure that Accounts are not set as private in OWD, if yes use "wihtout sharing" keyword in your VF controller. Also if you can share your code, we could help you faster.
Hi,
Thanks for your reply. Here is my code.
Controller:
VF Page :
Thanks
Raj
1. try to make it without sharing: public WITHOUT sharing class XCD_HRMS_VF_Snippet_CBS {
2. Place a system.debug after both the queries and check if you are getting desried results in queries and if not , which query is failing
3. Try to access the record "a06D000000OJxeL" from salesforce UI to validate if this is a valid Id and record exists.
Hi,
I had done the necessary chages but it does not populate the values. Please help me out.
Thanks
Raj
This line looks a little confused to me:
specifically the piece highlighted in red.
The ':' character is used to bind an apex variable into your query, but you have then specified a string literal.
Try changing to: