Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insertGS : function(component, groupstructures, callback) {
- //call apex to save the newly created group structures
- var action = component.get("c.saveGroupStructure");
- action.setParams({gs: groupstructures
- });
- $A.enqueueAction(action);
- ///This part of code is used to navigate back to the GroupStructuresList Component
- //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"
- });
- ///navigate back to groupstructures page
- urlEvent.fire();
- },
Add Comment
Please, Sign In to add comment