You need to sign in to do that
Don't have an account?
nabil711
create a custom tab in customer portal
Hi
I want to display a link : '/apex/VFP_MyAccount?userName={!User.Username }&accountId='+Id
as a custom tab : MyAccount in my customer portal but i get problems with parameters
Thanks
It's a customer portal. The user logging in, by definition, has access to a single Account and, obviously, you already know who is logging in. You may want to have a "mode" argument at the end of the URL to signal to your VF page that you can coming in from a custom portal, so the controller can look for account and user ID arguments when not coming from the portal - or you can just assume that if the user and account IDs are not present on the querystring, then the call is coming from the portal.
Hope this helps,
All Answers
Create a "Visualforce Tab" .
Add this tab to the Customer Portal Tab settings.
Ensure that the portal user's profile has visibility to the objects and tabs.
Hope this helps. Let me know how you go.
And for my parameters account ID and UserName how can i get them???
It's a customer portal. The user logging in, by definition, has access to a single Account and, obviously, you already know who is logging in. You may want to have a "mode" argument at the end of the URL to signal to your VF page that you can coming in from a custom portal, so the controller can look for account and user ID arguments when not coming from the portal - or you can just assume that if the user and account IDs are not present on the querystring, then the call is coming from the portal.
Hope this helps,