Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <aura:component implements="lightning:isUrlAddressable, flexipage:availableForAllPageTypes">
  2.  
  3. <aura:handler name="init" value="{!this}" action="{!c.init}" />
  4. <aura:attribute name="productId" type="String" />
  5.  
  6. <aura:if isTrue="{!not(empty(v.productId))}">
  7.  
  8. <lightning:recordViewForm recordId="{!v.productId }" objectApiName="Product2">
  9. <lightning:outputField fieldName="Name" />
  10. </lightning:recordViewForm>
  11.  
  12. </aura:if>
  13. </aura:component>
  14.  
  15. <lightning:recordViewForm recordId="0010w000002HsJOAA0" objectApiName="Account">
  16. <lightning:outputField fieldName="Name" />
  17. </lightning:recordViewForm>
Add Comment
Please, Sign In to add comment