Page 1 of 1

select2 undefined in Cross Site Lookup

Posted: 17 Jun 2014
by Felix Müller
Hi,

I put two CrossSiteLookup Columns in a list on s SharePoint 2013 server.

After inserting values in the corresponding lists the drop-down menus are not visible anymore. In the debugger i see following errors:

SCRIPT5007: Für die Eigenschaft "defaults" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefinied


select2_locale_de.js, Zeile 7 Zeichen 5

SCRIPT438: Das Objekt unterstützt die Eigenschaft oder Methode "select2" nicht

CrossSiteLookup.js?rev=1_3_2, Zeile 5 Zeichen 40

SCRIPT438: Das Objekt unterstützt die Eigenschaft oder Methode "select2" nicht


CrossSiteLookup.js?rev=1_3_2, Zeile 5 Zeichen 40

Is there any fix for that issue?

Re: select2 undefined in Cross Site Lookup

Posted: 17 Jun 2014
by Dmitry Kozlov
Hello Felix,

Thank you for your request. First, please, deactivate/activate Cross-site Lookup feature at the site collection level. Next, make sure that you don't have other JS-errors in the browser console. Did you overrirde Request items or Item format templates of your lookup fields?

Re: select2 undefined in Cross Site Lookup

Posted: 17 Jun 2014
by Felix Müller
Hello Dmitry,

thank you for your help. My customer seems to have a solution deployed which uses jQuery 1.9.1 and which uses select2 in a wrong way (https://github.com/ivaynberg/select2/issues/992)

After deactivate this feature cross site lookup works again.

Thank you for pointing me in the right direction