Guest User

Untitled

a guest
Dec 11th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. insertGS : function(component, groupstructures, callback) {
  2.  
  3. //call apex to save the newly created group structures
  4. var action = component.get("c.saveGroupStructure");
  5. action.setParams({gs: groupstructures
  6. });
  7.  
  8. $A.enqueueAction(action);
  9.  
  10. ///This part of code is used to navigate back to the GroupStructuresList Component
  11. //variable to hold the account id for my naviagation back to original component
  12. var recordId = component.get("v.existinggroupstructure.Account__c")
  13. //set urlEvent Variable to navigate back to the original component
  14. var urlEvent = $A.get("e.force:navigateToURL");
  15. urlEvent.setParams({
  16. "url" : "lightning/n/Group_Structures_List?//Aid=" + recordId + "&Tid=123456789"
  17. });
  18. ///navigate back to groupstructures page
  19. urlEvent.fire();
  20.  
  21.  
  22. },
Add Comment
Please, Sign In to add comment