• subra_SFDC
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 1
    Replies
How can we call private methods in apex test class without using isTestVisible?? can any1 give example for this??
Hi every1,

herby i attached the controller and vf page for jquery fullcalendar..i got the events in color.....but i need events create by dayclick and eventdetails onmouseover and drag and delete event inside calendar....any1 help me for this....Thanks in advance


<apex:page controller="CalendarExample_Controller" action="{!pageLoad}">
    <link href="{!$Resource.fullCalendarCSS}" rel="stylesheet" />
    <link href="{!$Resource.fullCalendarPrintCSS}" rel="stylesheet" media="print" />
   
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <script src="{!$Resource.fullCalendarMinJS}"></script>
   
    <script>
        //We need to wrap everything in a doc.ready function so that the code fires after the DOM is loaded
        $(document).ready(function() { 
            //Call the fullCallendar method. You can replace the '#calendar' with the ID of the dom element where you want the calendar to go.
            $('#calendar').fullCalendar({
                header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'month,agendaWeek,agendaDay'
                },
                editable: false,
                events:
                [
                    //At run time, this APEX Repeat will reneder the array elements for the events array
                    <apex:repeat value="{!events}" var="e">
                        {
                            title: "{!e.title}",
                            start: '{!e.startString}',
                            end: '{!e.endString}',
                            url: '{!e.url}',
                            allDay: {!e.allDay},
                            className: '{!e.className}'
                        },
                    </apex:repeat>
                ]
            });
           
        });
   
    </script>
   
    <!--some styling. Modify this to fit your needs-->
    <style>
        #cal-options {float:left;}
        #cal-legend { float:right;}
        #cal-legend ul {margin:0;padding:0;list-style:none;}
        #cal-legend ul li {margin:0;padding:5px;float:left;}
        #cal-legend ul li span {display:block; height:16px; width:16px; margin-right:4px; float:left; border-radius:4px;}
        #calendar {margin-top:20px;}
        #calendar a:hover {color:#fff !important;}
       
        .fc-event-inner {padding:3px;}
        .event-birthday {background:#56458c;border-color:#56458c;}
        .event-campaign {background:#cc9933;border-color:#cc9933;}
        .event-personal {background:#1797c0;border-color:#1797c0;}
    </style>
   
    <apex:sectionHeader title="My Calendar Example"/>
    <apex:outputPanel id="calPanel">
        <apex:form >
            <div id="cal-options">
                <apex:commandButton value="{!IF(includeMyEvents,'Hide My Events','Show My Events')}" action="{!toggleMyEvents}"/>
            </div>
            <div id="cal-legend">
                <ul>
                    <li><span class="event-birthday"></span>Contact's Birthdays</li>
                    <li><span class="event-campaign"></span>Campaigns</li>
                    <li style="{!IF(includeMyEvents,'','display:none')}"><span class="event-personal"></span>My Events</li>
                </ul>
                <div style="clear:both;"><!--fix floats--></div>
            </div>
            <div style="clear:both;"><!--fix floats--></div>
            <div id="calendar"></div>
        </apex:form>
    </apex:outputPanel>
</apex:page>




controller


public class CalendarExample_Controller {

    public Boolean includeMyEvents {get;set;}
    public list<calEvent> events {get;set;}
   
    //The calendar plugin is expecting dates is a certain format. We can use this string to get it formated correctly
    String dtFormat = 'EEE, d MMM yyyy HH:mm:ss z';
   
    //constructor
    public CalendarExample_Controller() {
        //Default showing my events to on
        includeMyEvents = true;
    }
   
    public PageReference pageLoad() {
        events = new list<calEvent>();
        //Get Contact's Birthdays
        for(Contact cont : [select Id, Birthdate, FirstName, LastName from Contact where Birthdate != null]){
            //here we need to replace the birth year with the current year so that it will show up on this years calendar
            DateTime startDT = datetime.newInstance(Date.Today().Year(),cont.Birthdate.Month(), cont.Birthdate.Day());
            calEvent bday = new calEvent();
           
            bday.title = cont.FirstName + ' ' + cont.LastName + '\'s Birthday!';
            bday.allDay = true;
            bday.startString = startDT.format(dtFormat);
            //Because this is an all day event that only spans one day, we can leave the send date null
            bday.endString = '';
            bday.url = '/' + cont.Id;
            bday.className = 'event-birthday';
            events.add(bday);
        }
       
        //Get Campaigns
        for(Campaign camp : [select Id, Name, StartDate, EndDate from Campaign where IsActive = true]){
            DateTime startDT = camp.StartDate;
            DateTime endDT = camp.EndDate;
            calEvent campEvent = new calEvent();
           
            campEvent.title = camp.Name;
            campEvent.allDay = true;
            campEvent.startString = startDT.format(dtFormat);
            campEvent.endString = endDT.format(dtFormat);
            campEvent.url = '/' + camp.Id;
            campEvent.className = 'event-campaign';
            events.add(campEvent);
        }
       
        //Get my Events if we have selected the correct option
        if(includeMyEvents){
            for(Event evnt: [select Id, Subject, isAllDayEvent, StartDateTime, EndDateTime from Event where OwnerID = :UserInfo.getUserId()]){
                DateTime startDT = evnt.StartDateTime;
                DateTime endDT = evnt.EndDateTime;
                calEvent myEvent = new calEvent();
               
                myEvent.title = evnt.Subject;
                myEvent.allDay = evnt.isAllDayEvent;
                myEvent.startString = startDT.format(dtFormat);
                myEvent.endString = endDT.format(dtFormat);
                myEvent.url = '/' + evnt.Id;
                myEvent.className = 'event-personal';
                events.add(myEvent);
            }
        }
        return null;
    }
   
    public PageReference toggleMyEvents() {
        if(includeMyEvents){
            includeMyEvents = false;
        }
        else{
            includeMyEvents = true;
        }
        pageload();
        return null;
    }

   
    //Class to hold calendar event data
    public class calEvent{
        public String title {get;set;}
        public Boolean allDay {get;set;}
        public String startString {get;set;}
        public String endString {get;set;}
        public String url {get;set;}
        public String className {get;set;}
    }
}
Hi every1,

herby i attached the controller and vf page for jquery fullcalendar..i got the events in color.....but i need events create by dayclick and eventdetails onmouseover and drag and delete event inside calendar....any1 help me for this....Thanks in advance


<apex:page controller="CalendarExample_Controller" action="{!pageLoad}">
    <link href="{!$Resource.fullCalendarCSS}" rel="stylesheet" />
    <link href="{!$Resource.fullCalendarPrintCSS}" rel="stylesheet" media="print" />
   
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <script src="{!$Resource.fullCalendarMinJS}"></script>
   
    <script>
        //We need to wrap everything in a doc.ready function so that the code fires after the DOM is loaded
        $(document).ready(function() { 
            //Call the fullCallendar method. You can replace the '#calendar' with the ID of the dom element where you want the calendar to go.
            $('#calendar').fullCalendar({
                header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'month,agendaWeek,agendaDay'
                },
                editable: false,
                events:
                [
                    //At run time, this APEX Repeat will reneder the array elements for the events array
                    <apex:repeat value="{!events}" var="e">
                        {
                            title: "{!e.title}",
                            start: '{!e.startString}',
                            end: '{!e.endString}',
                            url: '{!e.url}',
                            allDay: {!e.allDay},
                            className: '{!e.className}'
                        },
                    </apex:repeat>
                ]
            });
           
        });
   
    </script>
   
    <!--some styling. Modify this to fit your needs-->
    <style>
        #cal-options {float:left;}
        #cal-legend { float:right;}
        #cal-legend ul {margin:0;padding:0;list-style:none;}
        #cal-legend ul li {margin:0;padding:5px;float:left;}
        #cal-legend ul li span {display:block; height:16px; width:16px; margin-right:4px; float:left; border-radius:4px;}
        #calendar {margin-top:20px;}
        #calendar a:hover {color:#fff !important;}
       
        .fc-event-inner {padding:3px;}
        .event-birthday {background:#56458c;border-color:#56458c;}
        .event-campaign {background:#cc9933;border-color:#cc9933;}
        .event-personal {background:#1797c0;border-color:#1797c0;}
    </style>
   
    <apex:sectionHeader title="My Calendar Example"/>
    <apex:outputPanel id="calPanel">
        <apex:form >
            <div id="cal-options">
                <apex:commandButton value="{!IF(includeMyEvents,'Hide My Events','Show My Events')}" action="{!toggleMyEvents}"/>
            </div>
            <div id="cal-legend">
                <ul>
                    <li><span class="event-birthday"></span>Contact's Birthdays</li>
                    <li><span class="event-campaign"></span>Campaigns</li>
                    <li style="{!IF(includeMyEvents,'','display:none')}"><span class="event-personal"></span>My Events</li>
                </ul>
                <div style="clear:both;"><!--fix floats--></div>
            </div>
            <div style="clear:both;"><!--fix floats--></div>
            <div id="calendar"></div>
        </apex:form>
    </apex:outputPanel>
</apex:page>




controller


public class CalendarExample_Controller {

    public Boolean includeMyEvents {get;set;}
    public list<calEvent> events {get;set;}
   
    //The calendar plugin is expecting dates is a certain format. We can use this string to get it formated correctly
    String dtFormat = 'EEE, d MMM yyyy HH:mm:ss z';
   
    //constructor
    public CalendarExample_Controller() {
        //Default showing my events to on
        includeMyEvents = true;
    }
   
    public PageReference pageLoad() {
        events = new list<calEvent>();
        //Get Contact's Birthdays
        for(Contact cont : [select Id, Birthdate, FirstName, LastName from Contact where Birthdate != null]){
            //here we need to replace the birth year with the current year so that it will show up on this years calendar
            DateTime startDT = datetime.newInstance(Date.Today().Year(),cont.Birthdate.Month(), cont.Birthdate.Day());
            calEvent bday = new calEvent();
           
            bday.title = cont.FirstName + ' ' + cont.LastName + '\'s Birthday!';
            bday.allDay = true;
            bday.startString = startDT.format(dtFormat);
            //Because this is an all day event that only spans one day, we can leave the send date null
            bday.endString = '';
            bday.url = '/' + cont.Id;
            bday.className = 'event-birthday';
            events.add(bday);
        }
       
        //Get Campaigns
        for(Campaign camp : [select Id, Name, StartDate, EndDate from Campaign where IsActive = true]){
            DateTime startDT = camp.StartDate;
            DateTime endDT = camp.EndDate;
            calEvent campEvent = new calEvent();
           
            campEvent.title = camp.Name;
            campEvent.allDay = true;
            campEvent.startString = startDT.format(dtFormat);
            campEvent.endString = endDT.format(dtFormat);
            campEvent.url = '/' + camp.Id;
            campEvent.className = 'event-campaign';
            events.add(campEvent);
        }
       
        //Get my Events if we have selected the correct option
        if(includeMyEvents){
            for(Event evnt: [select Id, Subject, isAllDayEvent, StartDateTime, EndDateTime from Event where OwnerID = :UserInfo.getUserId()]){
                DateTime startDT = evnt.StartDateTime;
                DateTime endDT = evnt.EndDateTime;
                calEvent myEvent = new calEvent();
               
                myEvent.title = evnt.Subject;
                myEvent.allDay = evnt.isAllDayEvent;
                myEvent.startString = startDT.format(dtFormat);
                myEvent.endString = endDT.format(dtFormat);
                myEvent.url = '/' + evnt.Id;
                myEvent.className = 'event-personal';
                events.add(myEvent);
            }
        }
        return null;
    }
   
    public PageReference toggleMyEvents() {
        if(includeMyEvents){
            includeMyEvents = false;
        }
        else{
            includeMyEvents = true;
        }
        pageload();
        return null;
    }

   
    //Class to hold calendar event data
    public class calEvent{
        public String title {get;set;}
        public Boolean allDay {get;set;}
        public String startString {get;set;}
        public String endString {get;set;}
        public String url {get;set;}
        public String className {get;set;}
    }
}
Hi every1,

herby i attached the controller and vf page for jquery fullcalendar..i got the events in color.....but i need events create by dayclick and eventdetails onmouseover and drag and delete event inside calendar....any1 help me for this....Thanks in advance


<apex:page controller="CalendarExample_Controller" action="{!pageLoad}">
    <link href="{!$Resource.fullCalendarCSS}" rel="stylesheet" />
    <link href="{!$Resource.fullCalendarPrintCSS}" rel="stylesheet" media="print" />
   
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <script src="{!$Resource.fullCalendarMinJS}"></script>
   
    <script>
        //We need to wrap everything in a doc.ready function so that the code fires after the DOM is loaded
        $(document).ready(function() { 
            //Call the fullCallendar method. You can replace the '#calendar' with the ID of the dom element where you want the calendar to go.
            $('#calendar').fullCalendar({
                header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'month,agendaWeek,agendaDay'
                },
                editable: false,
                events:
                [
                    //At run time, this APEX Repeat will reneder the array elements for the events array
                    <apex:repeat value="{!events}" var="e">
                        {
                            title: "{!e.title}",
                            start: '{!e.startString}',
                            end: '{!e.endString}',
                            url: '{!e.url}',
                            allDay: {!e.allDay},
                            className: '{!e.className}'
                        },
                    </apex:repeat>
                ]
            });
           
        });
   
    </script>
   
    <!--some styling. Modify this to fit your needs-->
    <style>
        #cal-options {float:left;}
        #cal-legend { float:right;}
        #cal-legend ul {margin:0;padding:0;list-style:none;}
        #cal-legend ul li {margin:0;padding:5px;float:left;}
        #cal-legend ul li span {display:block; height:16px; width:16px; margin-right:4px; float:left; border-radius:4px;}
        #calendar {margin-top:20px;}
        #calendar a:hover {color:#fff !important;}
       
        .fc-event-inner {padding:3px;}
        .event-birthday {background:#56458c;border-color:#56458c;}
        .event-campaign {background:#cc9933;border-color:#cc9933;}
        .event-personal {background:#1797c0;border-color:#1797c0;}
    </style>
   
    <apex:sectionHeader title="My Calendar Example"/>
    <apex:outputPanel id="calPanel">
        <apex:form >
            <div id="cal-options">
                <apex:commandButton value="{!IF(includeMyEvents,'Hide My Events','Show My Events')}" action="{!toggleMyEvents}"/>
            </div>
            <div id="cal-legend">
                <ul>
                    <li><span class="event-birthday"></span>Contact's Birthdays</li>
                    <li><span class="event-campaign"></span>Campaigns</li>
                    <li style="{!IF(includeMyEvents,'','display:none')}"><span class="event-personal"></span>My Events</li>
                </ul>
                <div style="clear:both;"><!--fix floats--></div>
            </div>
            <div style="clear:both;"><!--fix floats--></div>
            <div id="calendar"></div>
        </apex:form>
    </apex:outputPanel>
</apex:page>




controller


public class CalendarExample_Controller {

    public Boolean includeMyEvents {get;set;}
    public list<calEvent> events {get;set;}
   
    //The calendar plugin is expecting dates is a certain format. We can use this string to get it formated correctly
    String dtFormat = 'EEE, d MMM yyyy HH:mm:ss z';
   
    //constructor
    public CalendarExample_Controller() {
        //Default showing my events to on
        includeMyEvents = true;
    }
   
    public PageReference pageLoad() {
        events = new list<calEvent>();
        //Get Contact's Birthdays
        for(Contact cont : [select Id, Birthdate, FirstName, LastName from Contact where Birthdate != null]){
            //here we need to replace the birth year with the current year so that it will show up on this years calendar
            DateTime startDT = datetime.newInstance(Date.Today().Year(),cont.Birthdate.Month(), cont.Birthdate.Day());
            calEvent bday = new calEvent();
           
            bday.title = cont.FirstName + ' ' + cont.LastName + '\'s Birthday!';
            bday.allDay = true;
            bday.startString = startDT.format(dtFormat);
            //Because this is an all day event that only spans one day, we can leave the send date null
            bday.endString = '';
            bday.url = '/' + cont.Id;
            bday.className = 'event-birthday';
            events.add(bday);
        }
       
        //Get Campaigns
        for(Campaign camp : [select Id, Name, StartDate, EndDate from Campaign where IsActive = true]){
            DateTime startDT = camp.StartDate;
            DateTime endDT = camp.EndDate;
            calEvent campEvent = new calEvent();
           
            campEvent.title = camp.Name;
            campEvent.allDay = true;
            campEvent.startString = startDT.format(dtFormat);
            campEvent.endString = endDT.format(dtFormat);
            campEvent.url = '/' + camp.Id;
            campEvent.className = 'event-campaign';
            events.add(campEvent);
        }
       
        //Get my Events if we have selected the correct option
        if(includeMyEvents){
            for(Event evnt: [select Id, Subject, isAllDayEvent, StartDateTime, EndDateTime from Event where OwnerID = :UserInfo.getUserId()]){
                DateTime startDT = evnt.StartDateTime;
                DateTime endDT = evnt.EndDateTime;
                calEvent myEvent = new calEvent();
               
                myEvent.title = evnt.Subject;
                myEvent.allDay = evnt.isAllDayEvent;
                myEvent.startString = startDT.format(dtFormat);
                myEvent.endString = endDT.format(dtFormat);
                myEvent.url = '/' + evnt.Id;
                myEvent.className = 'event-personal';
                events.add(myEvent);
            }
        }
        return null;
    }
   
    public PageReference toggleMyEvents() {
        if(includeMyEvents){
            includeMyEvents = false;
        }
        else{
            includeMyEvents = true;
        }
        pageload();
        return null;
    }

   
    //Class to hold calendar event data
    public class calEvent{
        public String title {get;set;}
        public Boolean allDay {get;set;}
        public String startString {get;set;}
        public String endString {get;set;}
        public String url {get;set;}
        public String className {get;set;}
    }
}
How open link in child browser on iOS and android application? 
Hi,

I have created custom  field that is email in Custom object. I need to display email field in custom object A when i save the button.Code is working fine but email field not saved in Custom object .Why this happening.could you give any suggestion thanks in advance.

My VF code:
<apex:page Controller="kathir">
<apex:form >
    <apex:pageBlock title="Universal Containers">
      
            <apex:outputLabel value="Email Address" for="hh"/>
            <apex:inputText value="{!Email}" id="hh"/>
            <apex:commandButton value="save" action="{!save}"/>
      
</apex:pageBlock>
    </apex:form>
</apex:page>

Controller:
public class kathir{    public PageReference save() {        return null;    }    public String email{ get; set; }    public String getAccount() {        return null;    }    public String account { get; set; }public string Name{get;set;}{}public string Information{get;set;}{}}
Hi Folks , 

Can any one help out .I shall appreciate your help.

What is the use of query locator and iterable in batch apex and when do we use them?


Thanks in ADVANCE.



  • February 20, 2014
  • 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