• _ax21
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I'm creating a custom chatter component for the Event report page.
But i don't want the chatter component to track/display feed for the Event object,
i want the custome chatter component to track/display feed for a different custom object and i'm having some trouble doing this.  

Component code: 

<aura:component controller="EventLightningController" implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <aura:attribute name="recordId" type="String" />
    <aura:attribute name="EventDetail" type="EventDetail__c" />
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> 
    <aura:attribute name="eventDetailID" type="Id" default="{!v.EventDetail.Id}"/>   
    <!-- prints a100k0000008hnaAAA -->
    <p><ui:outputRichText value="{!v.eventDetailID}" /> </p>    
    <!-- using Event obj ID works -->
    <forceChatter:publisher context="RECORD" recordId="{!v.recordId}" />
    <forceChatter:feed type="Record" subjectId="{!v.recordId}"/> 
    <!-- hard coding works -->
    <forceChatter:publisher context="RECORD" recordId="a100k0000008hnaAAA" />
    <forceChatter:feed type="Record" subjectId="a100k0000008hnaAAA"/> 
    <!-- Custom object id not working?? -->                                            
    <forceChatter:publisher context="RECORD" recordId="{!v.eventDetailID}" />
    <forceChatter:feed type="Record" subjectId="{!v.eventDetailID}"/> 
</aura:component>

Thank in advance!
  • June 01, 2017
  • Like
  • 0
I'm creating a custom chatter component for the Event report page.
But i don't want the chatter component to track/display feed for the Event object,
i want the custome chatter component to track/display feed for a different custom object and i'm having some trouble doing this.  

Component code: 

<aura:component controller="EventLightningController" implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <aura:attribute name="recordId" type="String" />
    <aura:attribute name="EventDetail" type="EventDetail__c" />
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> 
    <aura:attribute name="eventDetailID" type="Id" default="{!v.EventDetail.Id}"/>   
    <!-- prints a100k0000008hnaAAA -->
    <p><ui:outputRichText value="{!v.eventDetailID}" /> </p>    
    <!-- using Event obj ID works -->
    <forceChatter:publisher context="RECORD" recordId="{!v.recordId}" />
    <forceChatter:feed type="Record" subjectId="{!v.recordId}"/> 
    <!-- hard coding works -->
    <forceChatter:publisher context="RECORD" recordId="a100k0000008hnaAAA" />
    <forceChatter:feed type="Record" subjectId="a100k0000008hnaAAA"/> 
    <!-- Custom object id not working?? -->                                            
    <forceChatter:publisher context="RECORD" recordId="{!v.eventDetailID}" />
    <forceChatter:feed type="Record" subjectId="{!v.eventDetailID}"/> 
</aura:component>

Thank in advance!
  • June 01, 2017
  • Like
  • 0