You need to sign in to do that
Don't have an account?
charlie_v
Capture Account ID Before Navigating Away from Page?
Hi. This is probably very basic, but I'm new to Apex and VF, and can't find this on the boards or documentation...
Our users will be accessing our new VF pages via a Custom Link on an Account's Detail Page.
The Apex class in the custom controller grabs the Account ID using the code:
But the problem is, when you click on the Custom Link on the Account Detail Page (and open VF page in existing window) the account id from the code above is no longer available.
How do I capture the account id prior to navigating away from the page?
Our users will be accessing our new VF pages via a Custom Link on an Account's Detail Page.
The Apex class in the custom controller grabs the Account ID using the code:
Code:
where id = :ApexPages.currentPage().getParameters().get('id')];
But the problem is, when you click on the Custom Link on the Account Detail Page (and open VF page in existing window) the account id from the code above is no longer available.
How do I capture the account id prior to navigating away from the page?
eg.
/apex/VFPage?Id={!Account.Id}