• Anand Jeevakan 5
  • NEWBIE
  • 5 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
<apex:stylesheet value="{!$Resource.relatedList}" />
....
<apex:pageBlock title="Assessment Service Area">
  <apex:pageBlockTable value="{!getASAList}" var="asmtServiceArea">
    <apex:column styleClass = "link" value="{!asmtServiceArea.Name}" />
    <apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area__c}"/>
    <apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area_Level__c}"/>
    <apex:column styleClass = "link" value="{!asmtServiceArea.Minutes__c}"/>
  </apex:pageBlockTable>

I tried CSS file stored in Static resource as well as inline stylesheet, but the styles are not reflected in the text inside the table columns. Please help!
<apex:stylesheet value="{!$Resource.relatedList}" />
....
<apex:pageBlock title="Assessment Service Area">
  <apex:pageBlockTable value="{!getASAList}" var="asmtServiceArea">
    <apex:column styleClass = "link" value="{!asmtServiceArea.Name}" />
    <apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area__c}"/>
    <apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area_Level__c}"/>
    <apex:column styleClass = "link" value="{!asmtServiceArea.Minutes__c}"/>
  </apex:pageBlockTable>

I tried CSS file stored in Static resource as well as inline stylesheet, but the styles are not reflected in the text inside the table columns. Please help!
Hi Comminity,

I have a requirement where i had to show different fields from 3 different objects into a single pageblock table with checkbox select option. so I am using a wrapper class. My code is below. Can any correct me where I am making the mistake.

public List<AccountTeamWrapper> getAgreementList(){
        if(AgreementList == null){
            agreementList = new List<AccountTeamWrapper>();
           for(Agreement__c agr:[select Id, name, Administrative_Source_System__c from Agreement__c where Customer__c=: accountId]){
                agreementList.add(new AccountTeamWrapper(agr, null));           
           }
List<Agreement_Rep__c> aggRepList = [select Id, Name, Agreement__r.Id, Agreement__r.Name, Agreement__r.Administrative_Source_System__c, REP_AGRMT_BEGIN_DT__c,  REP_AGRMT_END_DT__c
                                                    from Agreement_Rep__c where Agreement__r.Customer__c =: accountId];
            system.debug('************* Agreement size:'+aggRepList.size());
            system.debug('************* Agreement :'+aggRepList);                                                   
            for(Agreement_Rep__c aggRep: aggRepList){
                //aggIds.add(aggRep.Agreement__r.Id);
                agreementList.add(new AccountTeamWrapper(null, aggRep));
            }
return agreementList;
        }
        return null;
    }
public class AccountTeamWrapper{       
        public Agreement__c agreement{get;set;}
        public Agreement_Rep__c agreementRep{get;set;}       
        public Boolean selected{get;set;}       
       
        public AccountTeamWrapper(Agreement__c agr, Agreement_Rep__c aggRep){
            agreement = agr;
            agreementRep = aggRep;
            selected = false;
        }       
    }
}
Our triggers add great new functionality but as of now none are system critial. So for each trigger I have try/catch statements that catch standard exceptions and adds it to a custom built exception log I've created. http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=978\

The problem I've run into is covering the catch code with test coverage.  It seems like a Catch 22. If my test throws an exception it fails, but I somehow need it to throw an exception to cover the catch statement. Even with the catch code not covered we still have 90% code coverage but I'd like to cover as much as possible.

-Thanks
Jason
  • September 05, 2007
  • Like
  • 0