{"id":6891,"date":"2015-07-15T13:10:01","date_gmt":"2015-07-15T05:10:01","guid":{"rendered":"http:\/\/www.boostsolutions.com\/blog\/?p=6891"},"modified":"2023-07-31T11:38:14","modified_gmt":"2023-07-31T03:38:14","slug":"cascading-cross-site-one-go","status":"publish","type":"post","link":"https:\/\/www.boostsolutions.com\/blog\/cascading-cross-site-one-go\/","title":{"rendered":"Cascading and Cross site in one go"},"content":{"rendered":"<p>Cascading function has been required by many customers so far, and it&#8217;s a common requirement in the SharePoint market as SharePoint itself doesn&#8217;t support this.<\/p>\n<p>Why we need cascading and cross site function:<\/p>\n<p>1. Avoid selecting redundant data<\/p>\n<p>2. Improve efficiency<\/p>\n<p>3. Look up records from different sites under one site collection<\/p>\n<p>4. Locate desired data quickly<\/p>\n<p>With a very common example, country, state and city, which represents the key function of Cascaded lookup column.<\/p>\n<p><strong>First Part: Cascading function<\/strong><\/p>\n<p>Suppose we have a list that stores countries, states and cities like below:<\/p>\n<p><a href=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-49-16.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6908\" src=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-49-16.png\" alt=\"2015-07-15_12-49-16\" width=\"316\" height=\"395\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-49-16.png 316w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-49-16-240x300.png 240w\" sizes=\"(max-width: 316px) 100vw, 316px\" \/><\/a><\/p>\n<p>The state name will be repeated more than once, such as &#8216;<strong>California<\/strong>&#8216;, it looks like this when you use the SharePoint lookup column:<\/p>\n<p><a href=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-39-11.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6906\" src=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-39-11.png\" alt=\"2015-07-15_12-39-11\" width=\"401\" height=\"247\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-39-11.png 401w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-39-11-300x184.png 300w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-39-11-194x120.png 194w\" sizes=\"(max-width: 401px) 100vw, 401px\" \/><\/a><\/p>\n<p>While with Cascaded lookup column, it removes duplicate data and shows only the states for <strong>US <\/strong>by filtering the data:<\/p>\n<p>1. It filtered out the related states and cities based on the Country selected automatically:<\/p>\n<p><a href=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-51-16.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6909\" src=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-51-16.png\" alt=\"2015-07-15_12-51-16\" width=\"359\" height=\"162\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-51-16.png 359w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-51-16-300x135.png 300w\" sizes=\"(max-width: 359px) 100vw, 359px\" \/><\/a><\/p>\n<p>2. It shows single records and states that belong to <strong>US<\/strong> only:<\/p>\n<p><a href=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-53-31.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6910\" src=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-53-31.png\" alt=\"2015-07-15_12-53-31\" width=\"352\" height=\"123\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-53-31.png 352w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-53-31-300x104.png 300w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Second Part: Cross Site function<\/strong><\/p>\n<p>The original SharePoint lookup column settings page:<\/p>\n<p><a href=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-57-23.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6913\" src=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_12-57-23.png\" alt=\"2015-07-15_12-57-23\" width=\"238\" height=\"157\" \/><\/a><\/p>\n<p>While with Cascaded lookup column, the settings page is:<\/p>\n<p><a href=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_13-00-42.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6914\" src=\"http:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_13-00-42.png\" alt=\"2015-07-15_13-00-42\" width=\"309\" height=\"295\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_13-00-42.png 309w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/2015-07-15_13-00-42-300x286.png 300w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/a><\/p>\n<p>It supports to lookup from other sites of the current site collection, which an improvement of OOTB lookup column.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cascading function has been required by many customers so far, and it&#8217;s a common requirement in the SharePoint market as SharePoint itself doesn&#8217;t support this. Why we need cascading and cross site function: 1. Avoid selecting redundant data 2. Improve efficiency 3. Look up records from different sites under one site collection 4. Locate desired [&hellip;]<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,347],"tags":[],"_links":{"self":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6891"}],"collection":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6891"}],"version-history":[{"count":7,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6891\/revisions"}],"predecessor-version":[{"id":6915,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6891\/revisions\/6915"}],"wp:attachment":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}