Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" >
- <aura:attribute name="recordId" type="String" />
- <div class=" slds-card" style="padding:10px">
- <br/>
- <lightning:button variant="brand" label="Get Price" onclick="{!c.callpriceComp}"/>
- </div>
- </aura:component>
- ({
- callpriceComp :function(component,event,helper){
- var evt = $A.get("e.force:navigateToComponent");
- var AccountId = component.get("v.recordId");
- evt.setParams({
- componentDef: "c:fetchPriceComponent" ,
- componentAttributes: {
- storeId:AccountId
- }
- });
- evt.fire();
- }})
- <aura:component implements="force:lightningQuickAction,flexipage:availableForRecordHome" >
- <aura:attribute name="storeId" type="String" />
- <p>{!v.storeId}</p>
- </aura:component>
Add Comment
Please, Sign In to add comment