Ask Search:
Akshit RungtaAkshit Rungta 

Visualforce page on Customer Portal

I've created a visualforce page linked with an apex class. Everything works fine when I'm working on salesforce. But when I grant access to that tab on Customer Portal then only the headings are being displayed. None of the products or contracts linked with that page is displayed.

I've done all the settings as stated in the documents and the video. Is there anything specific that I've got to do inorder to get a visualforce page working on the customer portal. 

I'm trying to display all the contracts that are linked with the current logged in user.
Matt BrownMatt Brown
It probably has to do with something around permissions or sharing. Have you looked at your Sharing rules?
Akshit RungtaAkshit Rungta
Yeh. I've tried it with just read and read/write permission. 
Akshit RungtaAkshit Rungta
 I tried going to process of deployment from the start. And look at every single setting that I'd changed. Make them all to default settings as per the video.

I realised that, the Customer Portal Profile that I'd created under Admin Setup /Profiles doesnt appear under the standard object page layout option. I was trying to assign a standard object page layout to my portal profile, but the profile is not appearing. All the standard salesforce profiles are appearing but none of the Customer portal profiles are. 

Can you think of a reason why this is happening?
Matt BrownMatt Brown
Do you have a different view for your non-standard or customer portal profiles in the profiles list view?
Akshit RungtaAkshit Rungta
 Nop. I've just got one view
Matt BrownMatt Brown
And you do not see any Portal Profiles? That is odd. I would definitely log a case with Salesforce Support.
Akshit RungtaAkshit Rungta
 Nop. I cannot see it for any of the standard objects. But I can see them on all the custom objects
Matt BrownMatt Brown
Ok I am confused now as I think we may be talking about different things. I thought you were saying you cannot see your Customer Portal Profiles under Setup>Administration Setup>Manage Users>Profiles.

It seems you are talking about something else? 
Akshit RungtaAkshit Rungta
 No, I can see the profiles there. I cant see them under Setup>App setup>'Standard Object'>Page Layout>Page Layout Assignment
Matt BrownMatt Brown
Try the pagelayout assignment from within the profile instead. See if that works.
Akshit RungtaAkshit Rungta
I got to know that we cannot display the details from a standard object on the customer portal. Infact, I was told that I'll have to create a custom object which stores the results from the standard object and then display that Custom object on the portal. 

What I cant figure out is how to copy data from a Standard object to a custom object. I cannot have a reference as that wont work. I'll have to clone the data or something. There has to be a way to do that via apex. Do you have any idea how to do it?
Matt BrownMatt Brown
@akshit sorry I do not know Apex that well. You may have better luck posting your needs on the Apex developer discussion board.

I am sorry I should have known the answer you were given about the Contracts object not showing up on the Customer Portal even if it served up via Visualforce. The issue is is that it is looking at the standardController.