You need to sign in to do that
Don't have an account?
sangam vv
Guys please help me i am stuck in this VF Page?
Guys I have 2 objects
Account(Parent)
opportunity(child)
Assume that Requirement like this
For Example:
Account(HP)----have 1000 opportunity
In this 200 Qualified
400 Un-Qualified
400 Prospecting
In visual force page I want to see for Qualified(Total 200)
This week Last week This month Last Month today = Total Qualified leads
20 40 80 120 0 = 200
In visual force page I want to see for Un qualified(400)
This week Last week This month Last Month today = Total Qualified leads
200 40 240 160 0 = 400
Like this I want to see in VF page I tried But View State is reached more thn 135kb
How To Do using Map
Account(Parent)
opportunity(child)
Assume that Requirement like this
For Example:
Account(HP)----have 1000 opportunity
In this 200 Qualified
400 Un-Qualified
400 Prospecting
In visual force page I want to see for Qualified(Total 200)
This week Last week This month Last Month today = Total Qualified leads
20 40 80 120 0 = 200
In visual force page I want to see for Un qualified(400)
This week Last week This month Last Month today = Total Qualified leads
200 40 240 160 0 = 400
Like this I want to see in VF page I tried But View State is reached more thn 135kb
How To Do using Map
VF:
Change parameters name as per your choice.
Change field API names and their values in the code as per your Org data.
If this solves your problem, Mark it as Best Answer
- Do you have related opportunities for Accounts that match said criteria?
- StageName -> is this the API name of the field where you are storing values like "Qualified, "Un Qualified" etc ?
- Have you confirmed that the values stored are exactly same as used in above code -> "Qualified" ,"UnQualified" or they are somewhat different ? (change these values exactly according to stored values)
If none of these work for you, kindly share screenshot of any one account record along with related opportunities and screenshto of all field details of Opportunity (specially custom fields)Hope it helps.
accounts(parent)
standard Contact(in project i am using as a lead)
Hope it helps.
Please use the Correct API name of the object from where you are fetching values and change field names according to the field names in that particular object.
If you are fetching records from Account and Lead use API Account and Lead respectively in SOQL query.
If you are fetching records from Contact and Lead use API Contact and Lead respectively in SOQL query.
If you are fetching records from Account and Conact use API Account and Conact respectively in SOQL query.
If you are fetching records from Account and Opportunity use API Account and Opportunity respectively in SOQL query.
Account is a Parent(standard)
Contact is a child(standad)
because i saw previous images and noticed that one such value was "Unqualified" please write the Lead_Status__c value in Apex EXACTLY as its stored in field. Else if wont fetch any record. Values are case sensitive.
In the apex code you have shared above, kindly replace code from line 53-67 with following code:
Mark it as Best Answer if it helps.
i change code and picklist values also