You need to sign in to do that
Don't have an account?
Marc D Behr
Looking for a way to show platform event data
I have a Platform Event that is published when an error occurs in some event. I have a Lightning component that is subscribed to the event, but it only shows the last event. What I want, is to be able to show (as long as the window is open), the last X (say 100) events that have been received and have it continue to update as new events come in (old ones fall off the bottom and new ones appear on the top).
The component that I am using looks like this
Does anybody know how can I make the lastMessagePayload do what I described above?
Thanks!
The component that I am using looks like this
<aura:component implements="flexipage:availableForAllPageTypes"> <aura:attribute name="lastMessagePayload" type="String" access="private"/> <c:streaming channel="/event/DebugEvent__e" onMessage="{!c.handleMessage}"/> <div><p>{!v.lastMessagePayload}</p> </div> </aura:component>
Does anybody know how can I make the lastMessagePayload do what I described above?
Thanks!