项目作者: wimvelzeboer

项目描述 :
A Salesforce Lightning input field that adds a Lookup-field to any SObject in Salesforce
高级语言: JavaScript
项目地址: git://github.com/wimvelzeboer/sflib-InputLookUp.git
创建时间: 2018-01-18T07:59:54Z
项目社区:https://github.com/wimvelzeboer/sflib-InputLookUp

开源协议:GNU General Public License v3.0

下载


sflib-InputLookUp

A Salesforce Lightning input field that adds a Lookup-field to any SObject in Salesforce

Dependencies:
Must deploy ApexMocks and ApexCommons before deploying this library


Deploy to Salesforce

Donate

Please do not forget to make a donation when you find this tool useful. Much appreciated!

Donate

Credits

This code is originally written by Enrico Murru (http://enree.co, @enreeco), but I found that it needed some external dependencies, while this component is 100% based on Salesforce Lightning.

Example

This example will display an input field of a lookup type to the User SObject, and will filter on only active users with a Salesforce license.

  1. <aura:attribute access="private" name="userId" type="String" default=""></aura:attribute>
  2. <div class="slds-form-element">
  3. <div class="slds-form-element__control">
  4. <label class="slds-form-element__label">Select User:</label>
  5. <c:sflib_InputLookup type="User" value="{!v.userId}" filter="isActive=true AND Profile.UserLicense.Name='Salesforce'" ></c:sflib_InputLookup>
  6. </div>
  7. </div>