Cross-site Lookup Upgrade

Discussions about Cross-site Lookup
Locked
ksertkaya
Posts: 87
Joined: Wed Nov 18, 2015

06 Sep 2017

Hi,

Before upgraded Crossite 1.4.4, this column was Plumsail Lookup. When I upgraded Crossite Lookup, I can't see this code. How can I see that?

http://prntscr.com/ghtnib

Best Regards.

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

06 Sep 2017

So, if I understand correctly, you've lost configuration of the field after upgrade, correct? That shouldn't happen unless upgrading between major versions. What was your previous version?

If this happened, unfortunately, the settings can only be accessed programmatically from the field's schema.
Cross-site Lookup schema is similar to the out-of-the-box lookup but contains additional attributes. Here's an example:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Field
  Type="Lookup"
  Name="Country" 
  DisplayName="Country" 
  JSLink="~sitecollection/style library/plumsail/crosssitelookup/clienttemplates.js?field=Country" 
  xmlns:csl="Plumsail.CrossSiteLookup" 
  Mult="FALSE" 
  csl:ShowNew="false" 
   csl:RetrieveItemsUrlTemplate="function (term, page) {&#xA;  if (!term || term.length == 0) {&#xA;    return &quot;{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&amp;$orderby=Created desc&amp;$top=10&quot;;&#xA;  }&#xA;  return &quot;{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&amp;$orderby={LookupField}&amp;$filter=startswith({LookupField}, '&quot; + encodeURIComponent(term) + &quot;')&amp;$top=10&quot;;&#xA;}" 
   csl:ItemFormatResultTemplate="function(item) {&#xA;  return '&lt;span class=&quot;csl-option&quot;&gt;' + item[&quot;{LookupField}&quot;] + '&lt;/span&gt;'&#xA;}" 
  ID="{93c08653-b2e1-4342-b04f-8f32596b6633}" 
  SourceID="{fce5ae43-52aa-4f03-aa93-667112e7b5ce}" 
  StaticName="Country" 
  ColName="int1" 
  RowOrdinal="0" 
  Version="2" 
  WebId="{78a5e7dd-b782-4b2d-bf9a-893b5193d4ab}" 
  List="{275da0fb-d2cc-42c6-b82a-ed16ca87ea98}" 
  ShowField="Title" 
  csl:NewText="Add new item" 
   csl:NewContentType="" />
   
Cheers

ksertkaya
Posts: 87
Joined: Wed Nov 18, 2015

07 Sep 2017

Thank you.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests