function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vyshu GottipatiVyshu 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>
}
})
 
Santosh Reddy MaddhuriSantosh Reddy Maddhuri

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

Vyshu GottipatiVyshu Gottipati
Thank you Santosh. It worked.

i could test the functionality, but i want to know how to put it into my Goals object and test it in my local.
Santosh Reddy MaddhuriSantosh Reddy Maddhuri

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.

Vyshu GottipatiVyshu Gottipati
Thank you. It did help.