Useful code snippets in lightning

Application event firing:
var nextEvent = $A.get("e.c:NextToShipmentPage");
nextEvent.fire();
Component event firing:
var chooseEvent = component.getEvent("lookupSelect");
chooseEvent.setParams({
     "recordId" : component.get("v.record").id,
      "recordName":component.get("v.record").formattedStr
});
chooseEvent.fire();

Label in JavaScript code if your org has a namespace
$A.get("$Label.namespace.labelName")

Accessing user information without apex code
var userId = $A.get("$SObjectType.CurrentUser.Id");


e.force:navigateToComponent

1 comment:

  1. Casinos Near Casinos in Las Vegas, NV - JTHub
    A map showing casinos 시흥 출장마사지 and other gaming facilities located near casinos 제천 출장샵 in Las Vegas, NV. 영주 출장마사지 Check with JT hub to 광양 출장안마 find the best 오산 출장마사지 casino,

    ReplyDelete

Powered by Blogger.