The below class works on the the hometab to pass the user id to my visualforce page. When i try to add this page to an Account tab in the Console it returns an error that "ID Value 001(the Account id) is not valid for the User standard controller.
How can I pass the user ID? thanks!
Public class UsersNeglectedAccounts
public UsersNeglectedAccounts(ApexPages.StandardController controller) {}
List <AccountTeamMember> ATMS = [select AccountID from AccountTeamMember
where UserID =:userinfo.getuserId()];
Set<Id> accountIds {
get {
if (accountIds == null)
{
accountIds = new Set<Id>();
for (AccountTeamMember teamMember : [
SELECT AccountId FROM AccountTeamMember ETC....
I have another class that when I put it in the Console on an Opportunity it works fine -
public class MyOppsApprovalExt {
public MyOppsApprovalExt(ApexPages.StandardController controller) {}
public List <Opportunity> getOppsInApproval (){
return [select Name, Business_Line__c, Accountid, State__c, Approval_Status__c
from Opportunity where ownerID =:userinfo.getuserId() and
Approval_Status__c !=ETC CODE...
Am I not using the same methods? thanks
apex:page ...
look like associated withextensions="UsersNeglectedAccounts"
?