You need to sign in to do that
Don't have an account?
Vyshu Gottipati
Error with Testapp.app
I am trying to select multiple users in Assigned to field on Goals(custom object) . 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 reUsableMultiSelectLookupRenderer.js: c.reUsableMultiSelectLookup: org.auraframework.util.json.JsonStreamReader$JsonStreamParseException: Invalid literal value [3, 7]: 'application': Source
my code:
({
// Your renderer method overrides go here
<aura:application extends="force:slds">
<!-- Create attribute to store lookup value as a sObject-->
<aura:attribute name="selectedLookUpRecords" type="sObject[]" default="[]"/>
<c:reUsableMultiSelectLookup objectAPIName="Goals"
IconName="standard:Goals"
lstSelectedRecords="{!v.selectedLookUpRecords}"
label="Assigned_To__c"/>
<!-- here c: is org. namespace prefix-->
</aura:application>
}
})
http://sfdcmonkey.com/2018/02/20/multi-select-lookup-salesforce-lightning/
Failed to save reUsableMultiSelectLookupRenderer.js: c.reUsableMultiSelectLookup: org.auraframework.util.json.JsonStreamReader$JsonStreamParseException: Invalid literal value [3, 7]: 'application': Source
my code:
({
// Your renderer method overrides go here
<aura:application extends="force:slds">
<!-- Create attribute to store lookup value as a sObject-->
<aura:attribute name="selectedLookUpRecords" type="sObject[]" default="[]"/>
<c:reUsableMultiSelectLookup objectAPIName="Goals"
IconName="standard:Goals"
lstSelectedRecords="{!v.selectedLookUpRecords}"
label="Assigned_To__c"/>
<!-- here c: is org. namespace prefix-->
</aura:application>
}
})
Hi Vyshu Gottipati,
You need to place the above code in test.app lightning application and not in " reUsableMultiSelectLookupRenderer.js" controller.
Hope this helps.
Regards,
Santosh
i could test the functionality, but i want to know how to put it into my Goals object and test it in my local.
Hi Vyshu,
Create a detail page (using lightning app builder) for Goals object and add the component to that page.This way you can view your component on the detail page and test it.Hope this helps!.
Regards,
Santosh.