You need to sign in to do that
Don't have an account?
vijaymind
Data not showing on VF page
Hi All,
I am querying on some standard object like Document contracts etc. I have with sharing controller and Data returning the list but not displaying on VF page. I know why is it happening because user doesnot have Read access to Those standard object.
My question is why query is returinig records to the running user which doent have CRUD permissions ob that object ?
Thanks
Vijay
Sharing is related to data and CRUD permission is specific to Profile. Sharing keyword take care of what data you can access. Controller does not take care of the Profile setting, but your VF page does. So that's why your are able to query data in controller, but your VF page is not allowing display that data on page as user does not have read permission.
All Answers
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_keywords_sharing.htm
Hi Bhawani ,
Thanks for reply
But again my question is that user doesnot have even read permission on Document Object and query returning few of the documents records in controller and we have with sharing keyword which enforce the sharing records visibility.
Document object does not have OWD setting as I can see in sharing setting.
Sharing is related to data and CRUD permission is specific to Profile. Sharing keyword take care of what data you can access. Controller does not take care of the Profile setting, but your VF page does. So that's why your are able to query data in controller, but your VF page is not allowing display that data on page as user does not have read permission.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_perms_enforcing.htm
Thanks Bhawani.