You need to sign in to do that
Don't have an account?

Navigate back to Original Lightning Component - Not showing New Records
I have a lightning component that calls a second lightning component to clone records. After I am done on this second component, I want to navigate back to the original and refresh it so it includes the new records. I am able to return back to the original lightning component but the newly created records are not displaying unless I click refresh on browser. How can I navigate and refresh? THis is how I am returning to my original component on save:
Thanks!!
Fred
createClones: function(component, GroupStructures) { //Save the expense and update the view console.log('### Im in the first function ' ); this.upsertGS(component, GroupStructures, function(a) { //var groupstructures = component.get("v.newGroupStructures"); GroupStructures.push(a.getReturnValue()); component.set("v.newGroupStructures", GroupStructures); }); }, upsertGS : function(component, groupstructures, callback) { //variable to hold the account id for my naviagation back to original component var recordId = component.get("v.existinggroupstructure.Account__c") //set urlEvent Variable to navigate back to the original component var urlEvent = $A.get("e.force:navigateToURL"); urlEvent.setParams({ "url" : "lightning/n/Group_Structures_List?//Aid=" + recordId + "&Tid=123456789" }); //call apex to save the newly created group structures var action = component.get("c.saveGroupStructure"); action.setParams({ gs: groupstructures }); if (callback) { action.setCallback(this, callback); } $A.enqueueAction(action); ///navigate back to groupstructures page urlEvent.fire(); },
Thanks!!
Fred
So you no need to refresh ...
Can you share the markup ?