• Remedy_Morris
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi


I've tried to add the following code and I'm getting a Syntax Error :

 

<td>
       <div style="display:{!IF({!relatedto.BMCServiceDesk__FKIncident__r.BMCServiceDesk__Priority_ID__c}=='1','table-column','block') }">
        {!relatedto.BMCServiceDesk__FKIncident__r.BMCServiceDesk__Priority_ID__c}
       </div>
</td>

Does anybody have any ideas ?

Hi,

Can anyone help ? I think there should be a simple resoultion.

I've created the following email template / component :

<messaging:emailTemplate subject="Incident #{!relatedto.Name} (Ref:IN:{!relatedto.Name})" recipientType="User" relatedToType="BMCServiceDesk__Incident__c">
<messaging:htmlEmailBody >

<c:MyComponent Inc_Id="{!RelatedTo.BMCServiceDesk__incidentId__c}" />
   
<html>
        <table>
         <b><font size="4" color="#4181FF" face="Arial">Update Information</font></b><br>    
         <apex:component controller="RepeatCon" access="global">
              <apex:attribute name="incidentId" type="String" description="Remedy Incident ID" assignTo="{!Inc_Id}" >
                   <apex:repeat var="cx" value="{!getNotes}">
                       <tr>             
                          <td><font face="Arial">{!cx.BMCServiceDesk__note__c}</font></td>
                       </tr>       
                  </apex:repeat>         
       </table>
    </body>
    </head>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>

I've cretaed the following controller:

public class RepeatCon {
    
    public String incidentId {get;set;}
    List<BMCServiceDesk__IncidentHistory__c> notes;

    public List<BMCServiceDesk__IncidentHistory__c> getNotes() {
        notes = [SELECT BMCServiceDesk__note__c, BMCServiceDesk_Sequence_c__c FROM   BMCServiceDesk__IncidentHistory__c  
        WHERE BMCServiceDesk__incidentId__c =:incidentId];
            
        return notes;      
        }
      }

I keep getting the following error message :

 Error: Component c:mycomponent does not exist

 

I've searched through all the previous discussions and I can't find an answer.

Does anyone have any ideas ?


Thanks

 

Hi,

Can anyone help ? I think there should be a simple resoultion.

I've created the following email template / component :

<messaging:emailTemplate subject="Incident #{!relatedto.Name} (Ref:IN:{!relatedto.Name})" recipientType="User" relatedToType="BMCServiceDesk__Incident__c">
<messaging:htmlEmailBody >

<c:MyComponent Inc_Id="{!RelatedTo.BMCServiceDesk__incidentId__c}" />
   
<html>
        <table>
         <b><font size="4" color="#4181FF" face="Arial">Update Information</font></b><br>    
         <apex:component controller="RepeatCon" access="global">
              <apex:attribute name="incidentId" type="String" description="Remedy Incident ID" assignTo="{!Inc_Id}" >
                   <apex:repeat var="cx" value="{!getNotes}">
                       <tr>             
                          <td><font face="Arial">{!cx.BMCServiceDesk__note__c}</font></td>
                       </tr>       
                  </apex:repeat>         
       </table>
    </body>
    </head>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>

I've cretaed the following controller:

public class RepeatCon {
    
    public String incidentId {get;set;}
    List<BMCServiceDesk__IncidentHistory__c> notes;

    public List<BMCServiceDesk__IncidentHistory__c> getNotes() {
        notes = [SELECT BMCServiceDesk__note__c, BMCServiceDesk_Sequence_c__c FROM   BMCServiceDesk__IncidentHistory__c  
        WHERE BMCServiceDesk__incidentId__c =:incidentId];
            
        return notes;      
        }
      }

I keep getting the following error message :

 Error: Component c:mycomponent does not exist

 

I've searched through all the previous discussions and I can't find an answer.

Does anyone have any ideas ?


Thanks