You need to sign in to do that
Don't have an account?
Sites permissions with sub-object?
I have a visualforce page that shows a child object of Contact. I tried refrencing the contact.object__r in a visualforce page, putting it in a apex:repeat command. This works fine when vieing /apex/VFpage, but on sites it doesn't see the values in the sub-object.
Then I tried a second SOQL statement instead, putting it in a varaible "Objects" then repeating on that. Again, it works fine in apex mode, but on the site, it stops working.
Now the really confusing part. I made a sub-class and iterated through the objects variable, setting an array of this sub-class, setting values from the objects variable, then used THAT in the Visualforce page and looped through it, and it worked fine, sites and apex both.
Any idea what can cause this kind of issue? It's clearly not permissions it's just weird handling in visualforce.
Making a non-proprietary version of the code.. be posted soon.
Ok, Below is the code that's making no sense to me. I can think of no reason it shouldn't work.
Here's the VF page:
and here's the class