Code Monkey home page Code Monkey logo

input-field-lookup's People

Contributors

jachaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

input-field-lookup's Issues

Unable to set the default value

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.
image

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.

How to Use on Site

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?

Missmatch Component and Controller

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?

Error in Lightning Component

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

Deploy 2 org not working

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

No filter issue

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 ;)

not working component

tanks for the repo and the code
but when i try to add the component to my home page i get this error
Screen Shot 2021-10-14 at 5 39 48 PM

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.