• RudiHulsbos
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 8
    Replies
Hi All,
 
I have a class that i had to change to global due to the total characters limit. Now i want to reference the methods in this global class in another global class. I have searched the discussion boards but i keep getting: Method does not exist or incorrect signature
 
Please see the 2 classes below. How do i reference a method from the one global class in the other class? 
 

global class Recruitement_Dashboard_Controller{ private List<table> invitetracking; public Recruitement_Dashboard_Controller(ApexPages.StandardController controller) { invitetracking = [SELECT Id FROM table];system.debug('invitetracking: '+invitetracking); } //Global Counts****************************************************************************************************************// Public Integer getAcceptedMemberCount(){ Integer counter = 0; for(Invite_Tracking__c it : invitetracking){ if(field == 'text' && field == '1') counter += field.intValue();} system.debug('counter: '+counter); return counter; }

 

global class Recruitement_Dashboard_Controller2{ Public Integer test(){ Recruitement_Dashboard_Controller.getAcceptedMemberCount(); } }

 

 

Please help!!
 
Thanks,
 
Rudi 

Hi All,

 

I have managed to create a wrapper class containing a list of Contacts. I now need to add data from another object to each Contact to display in a large data table in a visual force page. How would i go about doing this? All the examples in the community cover how to add a check box next to each contact, but this not what i want to do.

 

I have attached my controller code and vf page. The second SELECT statement is the object info that i need returned. 

 

 

Please help! 

 

Thanks,

 

Rudi 

<apex:page id="Page" controller="dataTableContacts" sidebar="false" showHeader="true" tabStyle="Contact" contenttype="application/vnd.ms-excel#Invitation.xls" cache="true" ><apex:form > <apex:pageBlock title="Invitation Tracking" > <apex:dataTable value="{!Contacts}" var="c" border="2" width="75%" title="Invitation Tracking"> <apex:column width="5%"> <apex:facet name="header">Project</apex:facet> <apex:outputPanel layout="block" style="width:100%;overflow:hidden"> <apex:outputText value="{!c.contactlist.Project__c}"/> </apex:outputPanel> </apex:column> <apex:column > <apex:facet name="header">Name</apex:facet> <apex:outputPanel layout="block" style="width:100%;overflow:hidden"> <apex:outputText value="{!c.contactlist.Name}"/> </apex:outputPanel> </apex:column> <apex:column > <apex:facet name="header">Member Source</apex:facet> <apex:outputText value="{!c.contactlist.Member_Source__c}"/> </apex:column> <apex:column > <apex:facet name="header">Member</apex:facet> <apex:outputText value="{!c.contactlist.Member__c}"/> </apex:column> <apex:column > <apex:facet name="header">Date of CAL Approval</apex:facet> <apex:outputText value="{!c.contactlist.Date_of_CAL_Approval__c}"/> </apex:column> <apex:column > <apex:facet name="header">Date Invite Materials Sent to PIE/CAL</apex:facet> <apex:outputText value="{!c.contactlist.Date_Invite_Materials_Sent_to_PIE_CAL__c}"/> </apex:column> <apex:column > <apex:facet name="header">Organisation Name</apex:facet> <apex:outputText value="{!c.contactlist.Account.Name}"/> </apex:column> <apex:column > <apex:facet name="header">Full Name</apex:facet> <apex:outputText value="{!c.contactlist.Name}"/> </apex:column> <apex:column > <apex:facet name="header">Title (Abbreviation)</apex:facet> <apex:outputText value="{!c.contactlist.Title_Full__c}"/> </apex:column> <apex:column > <apex:facet name="header">Operating Group</apex:facet> <apex:outputText value="{!c.contactlist.Account.Operating_Group__c}"/> </apex:column> <apex:column > <apex:facet name="header">Industry</apex:facet> <apex:outputText value="{!c.contactlist.Account.Industry}"/> </apex:column> <apex:column > <apex:facet name="header">Client Classification</apex:facet> <apex:outputText value="{!c.contactlist.Account.Client_Classification__c}"/> </apex:column> <apex:column > <apex:facet name="header">Client Account Lead</apex:facet> <apex:outputText value="{!c.contactlist.Client_Account_Lead__c}"/> </apex:column> <apex:column > <apex:facet name="header">Marketing Contacts</apex:facet> <apex:outputText value="{!c.contactlist.Marketing_OG_Lead__c}"/> </apex:column> <apex:column > <apex:facet name="header">Region</apex:facet> <apex:outputText value="{!c.contactlist.Region__c}"/> </apex:column> <apex:column > <apex:facet name="header">Point of Contact (POC)</apex:facet> <apex:outputText value="{!c.contactlist.Point_of_Contact__c}"/> </apex:column> <apex:column > <apex:facet name="header">Management Link</apex:facet> <apex:outputText value="{!c.contactlist.Management_Link__c}"/> </apex:column> <apex:column > <apex:facet name="header">Revenues (Mil) Value</apex:facet> <apex:outputText value="{!c.contactlist.Account.Revenues_Mil_Value__c}"/> </apex:column> <apex:column > <apex:facet name="header">Comments</apex:facet> <apex: value="{!c.contactlist.h_All_Feedback_Comments__c}"/> </apex:column> </apex:dataTable> </apex:pageBlock></apex:form></apex:page>

public class dataTableContacts {private final String project;public Transient List<cContact> contactlist {get; set;} public dataTableContacts() { project = ApexPages.currentPage().getParameters().get('String'); System.debug('project: '+project); } public List<cContact> getContacts() { if (contactlist == null){ contactlist = new List<cContact>(); for (Contact c : [SELECT Id, Name, Region__c, Member__c, Member_Source__c, Client_Account_Lead__c, Title_Full__c, Project__c, Management_Link__c, Marketing_OG_Lead__c, Marketing_Contacts__c, Point_of_Contact__c, Date_of_CAL_Approval__c, Date_Invite_Materials_Sent_to_PIE_CAL__c, Account.Name, Account.Industry, Account.Operating_Group__c, Account.Revenues_Mil_Value__c, Account.Client_Classification__c , h_All_Feedback_Comments__c, (SELECT Id, Name, Organisation__c, Title__c, Date_of_Interview__c, Project__c, Comments__c, Points_Received__c, Points_Possible__c, Percent__c, Interview_Status__c, Interview_Conducted_By__c FROM New_Member_Interview__r) FROM Contact WHERE Project__c = :project limit 1000]){ contactlist.add(new cContact(c)); System.debug('contactlist: '+contactlist); } } return contactlist; } public class cContact{ public Contact contactlist {get; set;} public cContact(Contact c){ contactlist = c; } }}

 

 

 

Hi there all,

 

I am trying to create a table with the columns on the left hand side, and display the returned data on the right hand side??:

 

Column 1          Product.Name

Column 2          Product.Description

Column 3          Product.Quantity

Column 4          Product.Price

 

Then, just to make it interesting, i need to repeat the table for each product in the returned list??

 

Please any suggestions would be greatly appreciated!!

 

Thanks,

 

Rudi 

Hi There,

 

We have a class and 2 triggers to deploy to production, everything works perfectly in the sandbox, but when we deploy toproduction we get the following errors:

 

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY - Maximum trigger depth exceeded on a non recursive trigger

 

We have 2 triggers on the Quotes object and it seems these triggers are causing the issue, but im not sure how to fix them, i have added the code for the triggers below.

 

If anybody could assist woth this it would be great!!

 

trigger UpdateAdjustedFieldsLineItems on SFDC_520_Quote__c (after update) {

  //Get Quote ID
  SFDC_520_Quote__c[] q1 = trigger.new;
  String strQID = q1[0].id;
  System.debug('E Quote Id : '+strQID);

  //Get QuoteLine ID's and Adjusted Fields
  SFDC_520_QuoteLine__c[] ql1 = [SELECT Adjusted_COST_PRICE__c,
                                Adjusted_SELLING_PRICE__c
                                FROM SFDC_520_QuoteLine__c WHERE Quote__r.Id = :strQID];
                               
  System.debug('E Size ql1 : '+ ql1.size());
 
  for (Integer i = 0; i < ql1.size(); i++) {                             
                               
   String strQLID = ql1[i].id;
   System.debug('E Quote Line Id : '+strQLID);

   Decimal strAdjCost = ql1[i].Adjusted_COST_PRICE__c;
   Decimal strAdjSell = ql1[i].Adjusted_SELLING_PRICE__c;
 
   System.debug('E ADJ COST : '+strAdjCost);
   System.debug('E ADJ SELLING : '+strAdjSell);
 
   //Update Adjusted Fields
   if((strAdjCost != 0.0) && (strAdjSell != 0.0)) {

     SFDC_520_QuoteLine__c[] q = [SELECT Adjusted_GP_Perc__c FROM SFDC_520_QuoteLine__c WHERE Id = :strQLID];
     Decimal strAdjGP = 1 - (strAdjCost / strAdjSell) * 100;
     System.debug('E Adjusted GP Perc : ' + strAdjGP);                           
     q[0].Adjusted_GP_Perc__c = strAdjGP; 

     update q;
    }
  }
}

Message Edited by RudiHulsbos on 05-28-2009 09:15 AM
Hi All,
 
I'm in the midst of using Print Anything.
The Tutorial of Print Invitation works fine when I log in as System Administrator.
But when I login as another user with non-system administrator profile, the below error message pops up
 

INVALID_TYPE: pkg.PRINTANY__Templates__r tmp) from PRINTANY__Package__c pkg where pkg.PRINTANY__Name__c ^ ERROR at Row:1:Column:166 sObject type 'PRINTANY__Package__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

Any lead is much appreciated.

regards

Rob.

 


 
When implementing a print anything document everything looks fine in IE 6 or 7 but firefox outputs garbage character stream. Does anyone know why??