function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cnno_devcnno_dev 

Visualforce weird behavior (force bug?)

Hi, using force Sites I've made a visualforce page, with its corresponding controller. Everything works fine in the developer mode: https://<domain_name>.na6.visual.force.com/apex/<page_name>?inst=8&po=PO00056

However, when I go to the public mode: 

http://<domain_name>-developer-edition.na6.force.com/suppliers/cnno__suppliers?po=PO00056

 

Basically, it doesn't bring me a collection that is being perfectly brought on the developer mode.

 

My VF page is like this:

 

<apex:pageBlock title="Solicitudes">
    <apex:pageBlockTable id="RequisitionsList" value="{!Requisitions}"

var="cnno__Cnno_Purchase_Requisition__c" rendered="{!NOT(ISNULL

(Requisitions))}">

        <apex:column >
            <apex:facet name="header">
                <apex:outputText value="Requisition ID"/>
            </apex:facet>
            <!-- Position name field linked to job details page -->
            <apex:outputText value="{!

cnno__Cnno_Purchase_Requisition__c.name}"/>

</apex:column>

 

.......................         

   
</apex:pageBlockTable>
</apex:pageBlock>

 

 

And my apex controller has this method:

 

public cnno__Cnno_Purchase_Requisition__c[] getRequisitions(){
            return requisitions;  

 

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

you need to check the following to make sure they are set properly

1- site details>public access settings> object permissions 

2- site details>public access settings> field level security for the objects you are using 

3- sharing rules for the object you are using

 

your admin user and the site has different security settings and are different users