You need to sign in to do that
Don't have an account?
Racheal Dales 25
Error with Testapp.app - Source?
I am trying to select multiple users from the User object in Salesforce. i could reproduce all the steps in the link except Testapp.app and got an below error.
http://sfdcmonkey.com/2018/02/20/multi-select-lookup-salesforce-lightning/
Failed to save TestApp.app: The attribute "label" was not found on the COMPONENT markup://c:reUsableMultiSelectLookup: Source
Any help would be greatly appreciated! My code -
<aura:application extends="force:slds">
<!-- Create attribute to store lookup value as a sObject-->
<aura:attribute name="selectedLookUpRecords" type="sObject[]" default="[]"/>
<c:reUsableMultiSelectLookup objectAPIName="user"
IconName="standard:user"
lstSelectedRecords="{!v.selectedLookUpRecords}"
label="User Name"/>
<!-- here c: is org. namespace prefix-->
</aura:application>
http://sfdcmonkey.com/2018/02/20/multi-select-lookup-salesforce-lightning/
Failed to save TestApp.app: The attribute "label" was not found on the COMPONENT markup://c:reUsableMultiSelectLookup: Source
Any help would be greatly appreciated! My code -
<aura:application extends="force:slds">
<!-- Create attribute to store lookup value as a sObject-->
<aura:attribute name="selectedLookUpRecords" type="sObject[]" default="[]"/>
<c:reUsableMultiSelectLookup objectAPIName="user"
IconName="standard:user"
lstSelectedRecords="{!v.selectedLookUpRecords}"
label="User Name"/>
<!-- here c: is org. namespace prefix-->
</aura:application>
Have declared attribute with name = 'Label' at reUsableMultiSelectLookup component If not please declare attribute, this is the error your getting.
Like : <aura:attribute name="label" type="String" default="None"/>
Regards
Vijay
This is the code I already had written within the reUsableMultiSelectLookup which includes this line -
<aura:attribute name="label" type="string" default="User"/>
I'm guessing that is incorrect since I'm still receiving the error. Do you know how to change this line to represent the User within Salesforce?
I also went through http://sfdcmonkey.com/2018/02/20/multi-select-lookup-salesforce-lightning/ and I also tested the same in my Org. See result I'm getting in below image.
I'm able to get the all users one by one and I also posted debug screenshot also it's querying the user as well.
So please check again or else delete all components you created and create again.
This is the application code I used.
<aura:application extends="force:slds">
<!-- Create attribute to store lookup value as a sObject-->
<aura:attribute name="selectedLookUpRecords" type="sObject[]" default="[]"/>
<c:reUsableMultiSelectLookup objectAPIName="user"
IconName="standard:user"
lstSelectedRecords="{!v.selectedLookUpRecords}"
label="User Name"/>
<!-- here c: is org. namespace prefix-->
</aura:application>
Kindly check once again and let me know.
Regards
Vijay
Did you make any other alterations to the other components other than the application example above? Specifically what did you enter reUsableMultiSelectLookup which is where I wrote -
<aura:attribute name="label" type="string" default="User"/>
I didn't change any small change also for me it's working fine expected way.
Please try 2 create new components and check.
Are you still facing the same error while saving the app. if yes send us all components here.
I was able to get the app to save once I recreated the components. Now I'm having an issue with 0% code coverage when trying to bring the components over to production. Any suggestions? Coding is not my speciality so I'm sure I missed some step. Thanks for your help!
I think this is useful to you.
That worked perfectly! I was able to move the code into production but now I can't figure out how to get this component to show up on a page layout. Would you have any advice on this part? Thanks in advance.