You need to sign in to do that
Don't have an account?
Abhilash Mishra 13
Authorization error in sf site while inserting a record
I am working on force.com site. i have a method which insert a record. user have all the permission CRUD and all fields are visible. when this method is called by commandlink it work. when call by any other method with in the class. site give autorisation error.
How can i Fix this. when i do this.
this gives autorisation error .
how can i solve this please help
How can i Fix this. when i do this.
<!-- Visual force active site home page--> <apex:page controller="tempcontroller"> <apex:commandbutton value ="insert" action="{!ins}"> </apex:page> <!-- visual force controller---> public with sharing tempcontroller{ tempcontroller(){ } public void ins(){ position__C pos = new postion__C(name'test'); inser pos; } }the above code works fine but if i do following
<!-- Visual force active site home page--> <apex:page controller="tempcontroller"> <p> this is a page</p> </apex:page> <!-- visual force controller---> public with sharing tempcontroller{ tempcontroller(){ } public void check(){ ins(); } public void ins(){ position__C pos = new postion__C(name'test'); inser pos; } }
this gives autorisation error .
how can i solve this please help
Also please check if the Sites Guest User has access to the Apex Class and the Visualforce page.
Thank you
All Answers
Also please check if the Sites Guest User has access to the Apex Class and the Visualforce page.
Thank you
Thanks