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
SkyPlannerSkyPlanner 

PROBLEM with Public Settings in a SITE. Please advise.

Hi all,

 

We are having a problem trying to list some records of a custom object. We have set a Site in a developer organization and also assigned the required permission to objects and fields in "Public Accesss Settings" for the object we need to list.  The visualforce page does list the records but with all the fields in blank. We did the same in a sandbox and everithing worked as expected. The only diference between the two approaches is the type of license being assigned to the guest user; in the developer organization es "Guest" and in the sandbox is "Guest User License".

 

Has someone run into this problem before? Is the type of license the one causing the problem? What can we do in order to develope the Site in the developer organization?

 

Thanks you very much.

 

SkyPlanner Team

Best Answer chosen by Admin (Salesforce Developers) 
SkyPlannerSkyPlanner

I solved the problem and I was not actually a problem. It was a HUGE mistake

 

public WarehouseServiceWrapper(Warehouse_Service__c service)
{
	this.IsSelected	= false;
	this.Service 	= service; // THIS LINE WAS WRONG: WITHOUT 'this'
}

 And the property Service of my wrapper was always returning NULL

 

Sorry guys for this silly error.

All Answers

JPClark3JPClark3

Check to make sure your objects and/or package are "deployed"

SkyPlannerSkyPlanner

Thanks for your advise. But my objects are deployed and still not showing at all.

Ispita_NavatarIspita_Navatar

Hi,

           Have you given field level security in Public access setting?if yes then you have to check  "view Field Accessibility" for   guest user license by directly going to the object's specfic fields. There will be a button  "View Field Accessibility" when one clicks on any fields of an object.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

SkyPlannerSkyPlanner

Thanks for your response but this did not solved my problem. I went to the specific field accessibility but the Guest Profile does not shows up. Below I'm listing the avilable profiles I can edit the field access to.

 

Authenticated Website   
Contract Manager   
Custom: Marketing Profile   
Custom: Sales Profile   
Custom: Support Profile   
Customer Portal Manager Custom   
Customer Portal Manager Standard   
Force.com - Free User   
Gold Partner User   
High Volume Customer Portal   
Marketing User           
Read Only               
Silver Partner User       
Solution Manager       
Standard Platform User   
Standard User           
System Administrator

 

 

I am 99% sure the object and all its fields are accessible via "Public Access Settings" where all permissions can be granted to the Site profile. Any other idea?

 

Thanks



SkyPlannerSkyPlanner

I solved the problem and I was not actually a problem. It was a HUGE mistake

 

public WarehouseServiceWrapper(Warehouse_Service__c service)
{
	this.IsSelected	= false;
	this.Service 	= service; // THIS LINE WAS WRONG: WITHOUT 'this'
}

 And the property Service of my wrapper was always returning NULL

 

Sorry guys for this silly error.

This was selected as the best answer