chaos-tech-corp / input-field-lookup Goto Github PK
View Code? Open in Web Editor NEWSalesforce Lightning lookup component
License: GNU General Public License v3.0
Salesforce Lightning lookup component
License: GNU General Public License v3.0
Hey, First of all, thanks a lot for this great component.
The issue I'm facing is when I try to set a default value on the Lookup when we load this, It loads the Id I give but the name is blank.
Can you please let me know where I'm going wrong.
The true above is coming because I set the parameter selectedName="true" if this is not set then I get blank value there.
Below is my code.
<c:lookupField
objectAPIName="Case"
label="Related To"
returnFields="['CaseNumber','Id']"
queryFields="['CaseNumber']"
selectedId="{!v.newTask.WhatId}" showAddNew="false"
showIcon="false"
selectedName="true"
/>
v.newTask.WhatId this value is set in the js controller.
Thanks a lot in advance for all the help.
Cheers,
Sri.
I am having a custom vf page for self registration in community. And I am embedding this component in my vf page. The results for searching any account by name are not appearing in the lookup component when testing on site where as it is working in the local preview of vf page. Can you help me resolve this issue?
The Arrow key and an Enter key not working for selecting the records.
Hi, thank you for posting this code. I'm working on implementing a search feature in my lightning component and getting a few errors. It appears that the code for the controller doesn't match that of the component. In the component you're calling an event for onBlur and onFocus but those functions aren't available in the controller. Also, I don't see where you are providing a way to do the actual search. Is there a way you can provide the implementation?
I get this error when I try to save the lightning component. Any idea why?
Failed to save lookupField.cmp: No EVENT named markup://c:selectedsObjectRecordEvent found : [markup://c:lookupField]: Source
I clicked the deploy 2 org into a sandbox, but I am getting the following error message "Deploying Apex Class [lookupfieldController.apxc] - ... Error (400):
[{"message":"duplicate value found: duplicates value on record with id: ","errorCode":"DUPLICATE_VALUE","fields":[]}]"
Can you assist as we are trying to use this component ASAP
Hello,
First, thanks a lot for the work !
I am just here to present an issue I fixed for your component :
In the Apex controller line 57 your checking if the filter is null, in my case I did not set any filter in the component and it was considering the filter as an empty string, so not null.
Leading to a wrong query with AND () inside.
I just change the check by : if (Filter != '')
Thanks for this component ;)
tanks for the repo and the code
but when i try to add the component to my home page i get this error
and also i don't know where to put this:
<aura:component>
<aura:attribute name="selectedId" type="String" />
<c:lookupField
objectAPIName="Account"
label="Relate to"
returnFields="['Name','Phone','Website']"
queryFields="['Name','Phone','Website']"
selectedId="{!v.selectedId}"
filter="CreatedDate > 2001-01-01T00:00:01Z"/>
</aura:component>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.