Reload a Lightning Component from Actions done on a SKUID Page

Nicholas L.Nicholas L. ✭✭✭
edited June 16, 2020 in Questions
Perhaps I am overlooking this, but I can't find anything on how to reload a standard lightning component (i.e. related list) from a SKUID lightning component in which I am performing an action (creating a record that would end up on that related list). Wondering if this is possible natively?

Comments

  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited June 16, 2020
    Use the "Publish Event" action to fire the "force:refreshView" event. Make sure to set "Publishing Scope" to "All Skuid Pages and Lightning Components". If this doesn't work the first time, refresh the Page Composer and make sure that your settings "took" --- sometimes the "Publishing Scope" if you make a change to the Event Name property.
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited June 16, 2020
    Also, there is a feature on Models under "Advanced" called "Auto-sync with native Lightning Components" which does this automatically in response to Model saves / queries --- as well as the reverse behavior, of listening for Lightning events and automatically re-querying the selected Model. Depending on what you're trying to do, I'd recommend trying that feature first before using the Publish Event.
  • Nicholas L.Nicholas L. ✭✭✭
    edited April 16, 2020
    Zack, thank you for the response. Is this a new Spark feature or is it available in Milau?
  • Nicholas L.Nicholas L. ✭✭✭
    edited April 17, 2020
    This worked perfectly. Thank you Zack.

    Wishing safety to you, your family, and the SKUID family during these trying times.
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited April 17, 2020
    Thank you Nicholas, to you as well! 
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited June 8, 2020
    "Publish Event" with ability to publish Lightning Application Events has been around since Millau Update 2 I believe.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!