7

Assume you have a Lookup or Master-Detail relationship defined in the metadata and now you need a simple UI.

In Visualforce lookup-controls on the UI run out-of-the-box using <apex:inputField ... />

The output is an edit-field together with a looking-glass icon to open a lookup-popup. It's also possible to manually input the beginning of the name of the object which should been looked up, save it, and the platform assigns it.

How to do the same in Lightning Components?

I'm not expecting any source-code here. I would be interested if there is a way to do it natively or if there is a smarter workaround or if not: is this on the roadmap?

3

I am not sure if you tried this. but their is a Workaround as suggested in Salesforce Blog. Salesforce Lightning inputLookup: the missing component

I don't know if they are supoorted Natively but as you are asking for Workaround also then i hope it will help you or will give you guidelines.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.