Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:component implements="lightning:isUrlAddressable, flexipage:availableForAllPageTypes">
- <aura:handler name="init" value="{!this}" action="{!c.init}" />
- <aura:attribute name="productId" type="String" />
- <aura:if isTrue="{!not(empty(v.productId))}">
- <lightning:recordViewForm recordId="{!v.productId }" objectApiName="Product2">
- <lightning:outputField fieldName="Name" />
- </lightning:recordViewForm>
- </aura:if>
- </aura:component>
- <lightning:recordViewForm recordId="0010w000002HsJOAA0" objectApiName="Account">
- <lightning:outputField fieldName="Name" />
- </lightning:recordViewForm>
Add Comment
Please, Sign In to add comment