• dowzy
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 8
    Replies

Getting Error - Customer Metric does not exist.

 

I Want to create a visualforce page "Customer Metric".

I have a customer Metric object with all the field already created on salesforce.

Then i wanted to create a visualforce page for the same to make dynamic page such as shrinking the section.

The code which i created is

 

<apex:page standardController="Customer Metric" sidebar="false">
    <apex:sectionHeader title="Edit Customer Metric" subtitle="{!Customer Metric.name}"/>
    
<apex:form >
        
<apex:pageBlock title=" Customer Metric Edit" id="thePageBlock" mode="edit">
            
     <apex:pageMessages />
            
            <apex:pageBlockButtons >
                
                   <apex:commandButton value="Save" action="{!save}"/>
                
                   <apex:commandButton value="Cancel" action="{!cancel}"/>                
            
            </apex:pageBlockButtons>
            

<apex:actionRegion >

                
  <apex:pageBlockSection title="Basic Information" columns="1">

                     <apex:inputField value="{!Customer_Metric.name}"/>
               
         <apex:pageBlockSectionItem >
                     <apex:outputLabel value="Products"/>
               

                 <apex:outputPanel >

                          <apex:inputField value="{!Customer_Metric.Products}">
                                
                              <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>

                          </apex:inputField>

                                  <apex:actionStatus startText="applying value..." id="status"/>
                        
                 </apex:outputPanel>

         </apex:pageBlockSectionItem>

        <apex:inputField value="{!Customer_Metric.Opportunity_Name__c}"/>

        <apex:inputField value="{!Customer_Metric.Solution__c}"/>

        <apex:inputField value="{!Customer_Metric.Win_Loss_Status__c}"/>

        <apex:inputField value="{!Customer_Metric.Purchasing_Sourcing_Systems__c}"/>

        <apex:inputField value="{!Customer_Metric.Geography__c}"/>

        <apex:inputField value="{!Customer_Metric.Foreign_Languages__c}"/>

        <apex:inputField value="{!Customer_Metric.Competitors__c}"/>

        <apex:inputField value="{!Customer_Metric.Business_Challenge__c}"/>

        <apex:inputField value="{!Customer_Metric.Employee_Strength__c}"/>

        <apex:inputField value="{!Customer_Metric.Address__c}"/>

        <apex:inputField value="{!Customer_Metric.Deal_Type__c}"/>

        <apex:inputField value="{!Customer_Metric.Customer_Type__c}"/>

        <apex:inputField value="{!Customer_Metric.Replacement_Deal__c}"/>

        <apex:inputField value="{!Customer_Metric.Project_Team_Lead__c}"/>

        <apex:inputField value="{!Customer_Metric.CSM__c}"/>

        <apex:inputField value="{!Customer_Metric.Program_Manager__c}"/>

        <apex:inputField value="{!Customer_Metric.RSM_Name__c}"/>

        <apex:inputField value="{!Customer_Metric.Date__c}"/>

        <apex:inputField value="{!Customer_Metric.Industry__c}"/>

        <apex:inputField value="{!Customer_Metric.Revenue_Sales__c}"/>

        <apex:inputField value="{!Customer_Metric.Number_Of_Sourcing_Systems__c}"/>

        <apex:inputField value="{!Customer_Metric.Number_Of_Foreign_Languages__c}"/>

        <apex:inputField value="{!Customer_Metric.Financial_Model__c}"/>

        <apex:inputField value="{!Customer_Metric.Comments__c}"/>

        <apex:inputField value="{!Customer_Metric.Zycus_Value_Proposition__c}"/>


                
   </apex:pageBlockSection>

            
</apex:actionRegion>




            <apex:pageBlockSection title="Length Of Relationship" columns="1" >

        <apex:inputField value="{!Customer_Metric.Contract_Start_Date__c}"/>
        <apex:inputField value="{!Customer_Metric.Contract_Term__c}"/>

            </apex:pageBlockSection>


            <apex:pageBlockSection title="Spend Analysis" columns="1" rendered="{!Customer_Metric.Products ==

'AutoClass','ACLC','iAnalyze','iCost','iMine'}">

        <apex:inputField value="{!Customer_Metric.Contracted_Spend_Cap__c}"/>
        <apex:inputField value="{!Customer_Metric.Currency__c}"/>
        <apex:inputField value="{!Customer_Metric.Contracted_Users__c}"/>
        <apex:inputField value="{!Customer_Metric.Implementation__c}"/>
        <apex:inputField value="{!Customer_Metric.Refresh_Frequency__c}"/>
        <apex:inputField value="{!Customer_Metric.MM_Frequency__c}"/>
        <apex:inputField value="{!Customer_Metric.Taxonomy__c}"/>
        <apex:inputField value="{!Customer_Metric.Spend_Volume_in_US_bn__c}"/>
        <apex:inputField value="{!Customer_Metric.Use__c}"/>
        <apex:inputField value="{!Customer_Metric.Objectives_KPIs__c}"/>

            </apex:pageBlockSection>



            <apex:pageBlockSection title="Supplier Management" columns="1" rendered="{!Customer_Metric.Products == 'SIM'}">

        <apex:inputField value="{!Customer_Metric.SIM_User_Licenses__c}"/>
        <apex:inputField value="{!Customer_Metric.SIM_Power__c}"/>
        <apex:inputField value="{!Customer_Metric.SIM_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.SIM_Objectives_KPIs__c}"/>

            </apex:pageBlockSection>




            <apex:pageBlockSection title="Supplier Performance Management" columns="1" rendered="{!Customer_Metric.Products == 'SPM'}">

                <apex:inputField value="{!Customer_Metric.SPM_User_Licenses__c}"/>
        <apex:inputField value="{!Customer_Metric.SPM_Power__c}"/>
        <apex:inputField value="{!Customer_Metric.SPM_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.SPM_Objectives_KPIs__c}"/>

            </apex:pageBlockSection>




            <apex:pageBlockSection title="eSourcing" columns="1" rendered="{!Customer_Metric.Products == 'iSource','iManage'}">

                <apex:inputField value="{!Customer_Metric.Sourcing_Management_User_Licenses__c}"/>
                <apex:inputField value="{!Customer_Metric.Sourcing_Management_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.Sourcing_Management_Template__c}"/>
        <apex:inputField value="{!Customer_Metric.User_Count_Power_Business_Users__c}"/>
        <apex:inputField value="{!Customer_Metric.Categories__c}"/>
        <apex:inputField value="{!Customer_Metric.Supplier_Count__c}"/>
        <apex:inputField value="{!Customer_Metric.Event_Type__c}"/>
        <apex:inputField value="{!Customer_Metric.Sourcing_Management_Objectives_KPIs__c}"/>

            </apex:pageBlockSection>

 
 
            <apex:pageBlockSection title="Contract Management" columns="1" rendered="{!Customer_Metric.Products == 'iContract'}">

                <apex:inputField value="{!Customer_Metric.Contract_Management_User_Licenses__c}"/>
                <apex:inputField value="{!Customer_Metric.Contract_Management_Power__c}"/>
        <apex:inputField value="{!Customer_Metric.Contract_Management_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.Contract_Management_Objectives_KPIs__c}"/>
        <apex:inputField value="{!Customer_Metric.User_Count_Authority_Repository_Users__c}"/>
        <apex:inputField value="{!Customer_Metric.Number_Of_Contracts__c}"/>
        
            </apex:pageBlockSection>







        </apex:pageBlock>

    </apex:form>

</apex:page>

But i am getting a error as "Customer metric does not exist"

 

Any suggestion??

 

Regards,

Samuel

  • November 22, 2013
  • Like
  • 0

Hi All,

There is a field name "Rating" in my contact .
eg:  Account "Abc" with 3 contact 'x', 'y', 'z'
i want to calculate rating field present in this 3 contact and to make it an
average. and display it on account

Can this be possible

Need your help on this

Thanks in advance.

Regards,
Samuel

  • August 23, 2013
  • Like
  • 0

I have created a Custom link on a detail page that links to the attachment but am unable to observe it on an Approval Page.

 

I tried to create a hyperlink which will link the attachment to the Approval page but it states that the cannot call the same object.

 

Please help on this....

  • May 15, 2009
  • Like
  • 0

Getting Error - Customer Metric does not exist.

 

I Want to create a visualforce page "Customer Metric".

I have a customer Metric object with all the field already created on salesforce.

Then i wanted to create a visualforce page for the same to make dynamic page such as shrinking the section.

The code which i created is

 

<apex:page standardController="Customer Metric" sidebar="false">
    <apex:sectionHeader title="Edit Customer Metric" subtitle="{!Customer Metric.name}"/>
    
<apex:form >
        
<apex:pageBlock title=" Customer Metric Edit" id="thePageBlock" mode="edit">
            
     <apex:pageMessages />
            
            <apex:pageBlockButtons >
                
                   <apex:commandButton value="Save" action="{!save}"/>
                
                   <apex:commandButton value="Cancel" action="{!cancel}"/>                
            
            </apex:pageBlockButtons>
            

<apex:actionRegion >

                
  <apex:pageBlockSection title="Basic Information" columns="1">

                     <apex:inputField value="{!Customer_Metric.name}"/>
               
         <apex:pageBlockSectionItem >
                     <apex:outputLabel value="Products"/>
               

                 <apex:outputPanel >

                          <apex:inputField value="{!Customer_Metric.Products}">
                                
                              <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>

                          </apex:inputField>

                                  <apex:actionStatus startText="applying value..." id="status"/>
                        
                 </apex:outputPanel>

         </apex:pageBlockSectionItem>

        <apex:inputField value="{!Customer_Metric.Opportunity_Name__c}"/>

        <apex:inputField value="{!Customer_Metric.Solution__c}"/>

        <apex:inputField value="{!Customer_Metric.Win_Loss_Status__c}"/>

        <apex:inputField value="{!Customer_Metric.Purchasing_Sourcing_Systems__c}"/>

        <apex:inputField value="{!Customer_Metric.Geography__c}"/>

        <apex:inputField value="{!Customer_Metric.Foreign_Languages__c}"/>

        <apex:inputField value="{!Customer_Metric.Competitors__c}"/>

        <apex:inputField value="{!Customer_Metric.Business_Challenge__c}"/>

        <apex:inputField value="{!Customer_Metric.Employee_Strength__c}"/>

        <apex:inputField value="{!Customer_Metric.Address__c}"/>

        <apex:inputField value="{!Customer_Metric.Deal_Type__c}"/>

        <apex:inputField value="{!Customer_Metric.Customer_Type__c}"/>

        <apex:inputField value="{!Customer_Metric.Replacement_Deal__c}"/>

        <apex:inputField value="{!Customer_Metric.Project_Team_Lead__c}"/>

        <apex:inputField value="{!Customer_Metric.CSM__c}"/>

        <apex:inputField value="{!Customer_Metric.Program_Manager__c}"/>

        <apex:inputField value="{!Customer_Metric.RSM_Name__c}"/>

        <apex:inputField value="{!Customer_Metric.Date__c}"/>

        <apex:inputField value="{!Customer_Metric.Industry__c}"/>

        <apex:inputField value="{!Customer_Metric.Revenue_Sales__c}"/>

        <apex:inputField value="{!Customer_Metric.Number_Of_Sourcing_Systems__c}"/>

        <apex:inputField value="{!Customer_Metric.Number_Of_Foreign_Languages__c}"/>

        <apex:inputField value="{!Customer_Metric.Financial_Model__c}"/>

        <apex:inputField value="{!Customer_Metric.Comments__c}"/>

        <apex:inputField value="{!Customer_Metric.Zycus_Value_Proposition__c}"/>


                
   </apex:pageBlockSection>

            
</apex:actionRegion>




            <apex:pageBlockSection title="Length Of Relationship" columns="1" >

        <apex:inputField value="{!Customer_Metric.Contract_Start_Date__c}"/>
        <apex:inputField value="{!Customer_Metric.Contract_Term__c}"/>

            </apex:pageBlockSection>


            <apex:pageBlockSection title="Spend Analysis" columns="1" rendered="{!Customer_Metric.Products ==

'AutoClass','ACLC','iAnalyze','iCost','iMine'}">

        <apex:inputField value="{!Customer_Metric.Contracted_Spend_Cap__c}"/>
        <apex:inputField value="{!Customer_Metric.Currency__c}"/>
        <apex:inputField value="{!Customer_Metric.Contracted_Users__c}"/>
        <apex:inputField value="{!Customer_Metric.Implementation__c}"/>
        <apex:inputField value="{!Customer_Metric.Refresh_Frequency__c}"/>
        <apex:inputField value="{!Customer_Metric.MM_Frequency__c}"/>
        <apex:inputField value="{!Customer_Metric.Taxonomy__c}"/>
        <apex:inputField value="{!Customer_Metric.Spend_Volume_in_US_bn__c}"/>
        <apex:inputField value="{!Customer_Metric.Use__c}"/>
        <apex:inputField value="{!Customer_Metric.Objectives_KPIs__c}"/>

            </apex:pageBlockSection>



            <apex:pageBlockSection title="Supplier Management" columns="1" rendered="{!Customer_Metric.Products == 'SIM'}">

        <apex:inputField value="{!Customer_Metric.SIM_User_Licenses__c}"/>
        <apex:inputField value="{!Customer_Metric.SIM_Power__c}"/>
        <apex:inputField value="{!Customer_Metric.SIM_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.SIM_Objectives_KPIs__c}"/>

            </apex:pageBlockSection>




            <apex:pageBlockSection title="Supplier Performance Management" columns="1" rendered="{!Customer_Metric.Products == 'SPM'}">

                <apex:inputField value="{!Customer_Metric.SPM_User_Licenses__c}"/>
        <apex:inputField value="{!Customer_Metric.SPM_Power__c}"/>
        <apex:inputField value="{!Customer_Metric.SPM_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.SPM_Objectives_KPIs__c}"/>

            </apex:pageBlockSection>




            <apex:pageBlockSection title="eSourcing" columns="1" rendered="{!Customer_Metric.Products == 'iSource','iManage'}">

                <apex:inputField value="{!Customer_Metric.Sourcing_Management_User_Licenses__c}"/>
                <apex:inputField value="{!Customer_Metric.Sourcing_Management_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.Sourcing_Management_Template__c}"/>
        <apex:inputField value="{!Customer_Metric.User_Count_Power_Business_Users__c}"/>
        <apex:inputField value="{!Customer_Metric.Categories__c}"/>
        <apex:inputField value="{!Customer_Metric.Supplier_Count__c}"/>
        <apex:inputField value="{!Customer_Metric.Event_Type__c}"/>
        <apex:inputField value="{!Customer_Metric.Sourcing_Management_Objectives_KPIs__c}"/>

            </apex:pageBlockSection>

 
 
            <apex:pageBlockSection title="Contract Management" columns="1" rendered="{!Customer_Metric.Products == 'iContract'}">

                <apex:inputField value="{!Customer_Metric.Contract_Management_User_Licenses__c}"/>
                <apex:inputField value="{!Customer_Metric.Contract_Management_Power__c}"/>
        <apex:inputField value="{!Customer_Metric.Contract_Management_Business__c}"/>
        <apex:inputField value="{!Customer_Metric.Contract_Management_Objectives_KPIs__c}"/>
        <apex:inputField value="{!Customer_Metric.User_Count_Authority_Repository_Users__c}"/>
        <apex:inputField value="{!Customer_Metric.Number_Of_Contracts__c}"/>
        
            </apex:pageBlockSection>







        </apex:pageBlock>

    </apex:form>

</apex:page>

But i am getting a error as "Customer metric does not exist"

 

Any suggestion??

 

Regards,

Samuel

  • November 22, 2013
  • Like
  • 0

I have created a Custom link on a detail page that links to the attachment but am unable to observe it on an Approval Page.

 

I tried to create a hyperlink which will link the attachment to the Approval page but it states that the cannot call the same object.

 

Please help on this....

  • May 15, 2009
  • Like
  • 0