2.90:CMIS Lookup (Lookup Specification): Difference between revisions
No edit summary |
|||
| Line 92: | Line 92: | ||
|- | |- | ||
| style="padding:25px; vertical-align:center" | | | style="padding:25px; vertical-align:center" | | ||
# <li value="10"> Having completed the <code><span style="color:#0001fd">SELECT</span></code> command, press the space bar to move the cursor forward one space. In doing so the '''Grooper's''' intellisense will kick in again and push you in the direction of the <code><span style="color:#0001fd">FROM</span></code> statement. Not only that, but having pointed to the '''CMIS Repository''' object, the intellisense has an awareness of '''Content | # <li value="10"> Having completed the <code><span style="color:#0001fd">SELECT</span></code> command, press the space bar to move the cursor forward one space. In doing so the '''Grooper's''' intellisense will kick in again and push you in the direction of the <code><span style="color:#0001fd">FROM</span></code> statement. Not only that, but having pointed to the '''CMIS Repository''' object, the intellisense has an awareness of '''Content Types''' within the repository. Select the site that contains the writable properties you're looking to leverage for the lookup.</li> | ||
#* All you SQL sleuths out there might argue, "HEY! You haven't told it WHAT to select, so you shouldn't write the FROM yet!". Estute observation, however, '''Grooper's''' smarter than you think. In writing the <code><span style="color:#0001fd">FROM</span></code> statement first you've given '''Grooper''' awareness of what CAN be selected. This is made clear in the next step. | #* All you SQL sleuths out there might argue, "HEY! You haven't told it WHAT to select, so you shouldn't write the FROM yet!". Estute observation, however, '''Grooper's''' smarter than you think. In writing the <code><span style="color:#0001fd">FROM</span></code> statement first you've given '''Grooper''' awareness of what CAN be selected. This is made clear in the next step. | ||
|| [[File:cmis_lookup_005d.png|1000px]] | || [[File:cmis_lookup_005d.png|1000px]] | ||
|- | |- | ||
| style="padding:25px; vertical-align:center" | | | style="padding:25px; vertical-align:center" | | ||
# <li value="11"> If you allowed the intellisense to complete the <code><span style="color:#0001fd">FROM</span></code> statement for you, it will move the cursor back in front of the <code><span style="color:#0001fd">SELECT</span></code> command. This is important because you can now properly flesh out WHAT you are selecting. By pressing the spacebar (after it moved back to in front of the <code><span style="color:#0001fd">SELECT</span></code> command) you will now get more intellisense functionality. The intellisense menu will have awareness of the columns of information available in the SharePoint library you selected in the <code><span style="color:#0001fd">FROM</span></code> statement. Here you will be choosing the target fields of | # <li value="11"> If you allowed the intellisense to complete the <code><span style="color:#0001fd">FROM</span></code> statement for you, it will move the cursor back in front of the <code><span style="color:#0001fd">SELECT</span></code> command. This is important because you can now properly flesh out WHAT you are selecting. By pressing the spacebar (after it moved back to in front of the <code><span style="color:#0001fd">SELECT</span></code> command) you will now get more intellisense functionality. The intellisense menu will have awareness of the columns of information available in the SharePoint library you selected in the <code><span style="color:#0001fd">FROM</span></code> statement. Here you will be choosing the target fields of the lookup. Select an item from the intellisense list.</li> | ||
|| [[File:cmis_lookup_005e.png|1000px]] | || [[File:cmis_lookup_005e.png|1000px]] | ||
|- | |- | ||
| Line 105: | Line 105: | ||
|- | |- | ||
| style="padding:25px; vertical-align:center" | | | style="padding:25px; vertical-align:center" | | ||
# <li value="13"> Here, with <code>EMail_Address</code> we have an example of a column in the SharePoint library being named different than what is in the '''Data Model'''. In order for this to match up, we have to tell it what the column will be used as. To do this, press spacebar and once again see the intellisense kick in and know you want to make an <code><span style="color:#0001fd">AS</span></code> statement. Complete the <code><span style="color:#0001fd">AS</span></code> statement and press space again, and ... you guessed it ... more intellisense. The values listed here are data elements from the '''Data Model'''. By completing <code>EMail_Address <span style="color:#0001fd">AS</span> <span style="color:#FF0000">'EMail'</span></code> we've allowed for dissimilarly named elements to sync up.</li> | # <li value="13"> Here, with <code>EMail_Address</code> we have an example of a column in the SharePoint library being named different than what is in the '''Data Model'''. In order for this to match up, we have to tell it what the column will be used as. To do this, after making a selection, but before the next <code>, </code>, press spacebar and once again see the intellisense kick in and know you want to make an <code><span style="color:#0001fd">AS</span></code> statement. Complete the <code><span style="color:#0001fd">AS</span></code> statement and press space again, and ... you guessed it ... more intellisense. The values listed here are data elements from the '''Data Model'''. By completing <code>EMail_Address <span style="color:#0001fd">AS</span> <span style="color:#FF0000">'EMail'</span></code> we've allowed for dissimilarly named elements to sync up.</li> | ||
|| [[File:cmis_lookup_005g.png|1000px]] | || [[File:cmis_lookup_005g.png|1000px]] | ||
|- | |- | ||
| style="padding:25px; vertical-align:center" | | | style="padding:25px; vertical-align:center" | | ||
# <li value="14"> Having completed the entire <code><span style="color:#0001fd">SELECT</span></code> statement we can now write the <code><span style="color:#0001fd">WHERE</span></code> statement. To do this move the cursor to after the completed <code><span style="color:#0001fd">FROM</span></code> statement and press the spacebar. Select the WHERE option from the intellisense menu.</li> | # <li value="14"> Having completed the entire <code><span style="color:#0001fd">SELECT</span></code> statement (again, this was for the target fields) we can now write the <code><span style="color:#0001fd">WHERE</span></code> statement (to define the lookup field). To do this move the cursor to after the completed <code><span style="color:#0001fd">FROM</span></code> statement and press the spacebar. Select the WHERE option from the intellisense menu.</li> | ||
|| [[File:cmis_lookup_005h.png|1000px]] | || [[File:cmis_lookup_005h.png|1000px]] | ||
|- | |- | ||
| Line 125: | Line 125: | ||
|- | |- | ||
| style="padding:25px; vertical-align:center" | | | style="padding:25px; vertical-align:center" | | ||
# <li value="18"> Back in the '''Lookup Sepcification Collection Editor''' the ''''' | # <li value="18"> Back in the '''Lookup Sepcification Collection Editor''' the '''''Lookup Fields''''' and '''''Target Fields''''' properties are now dynamically populated based on the CMIS Query that was written.</li> | ||
# These properties will usually work fine if defaulted, but they cover circumstances outside basic situations. The '''Grooper Help''' does a good job explaining what they're for. | # These properties will usually work fine if defaulted, but they cover circumstances outside basic situations. The '''Grooper Help''' does a good job explaining what they're for. | ||
# Click the '''Test Lookup''' button to test your configuration. | # Click the '''Test Lookup''' button to test your configuration. | ||
| Line 136: | Line 136: | ||
|- | |- | ||
| style="padding:25px; vertical-align:center" | | | style="padding:25px; vertical-align:center" | | ||
# <li value="23"> You can also test your results by entering a value in the '''Data Field''' that is the Lookup Field in the '''Data Model Preview'''.</li> | # <li value="23"> You can also test your results by entering a value in the '''Data Field''' that is the Lookup Field in the '''Data Model Preview'''. Enter a value, and press tab to leave the field. Leaving the field fires the lookup, and will, as a result, populate the remaining fields.</li> | ||
|| [[File:cmis_lookup_005m.png|1000px]] | || [[File:cmis_lookup_005m.png|1000px]] | ||
|} | |} | ||
Revision as of 17:13, 24 April 2020
Performing data lookups on CMIS sources like SharePoint can be a powerful data integration tool.
A base Content Model for use with this article can be found here. It is not required to download to understand this article, but can be helpful because it can be used to follow along with the content of this article. This file was exported from and meant for use in Grooper 2.9
About
Grooper uses the CMIS protocol to connect to a variety of Content Management Systems. This connection can be used to integrate data in powerful ways by allowing the collection of one (or sometimes many) fields of information within a model in Grooper (let's call it Field A), then leveraging that extracted data point against the column of like information in the Content Management system (called Column A) to then pass back other desired fields from other columns in the same row of information.
How To
|
The most basic thing to understand about performing a lookup in Grooper is what the "lookup field" is and what the "target field(s)" is(are). The lookup field is the trigger, and the target fields are the result. |
|
Understanding the Source
Perhaps the most challenging aspect of explaining how to leverage this functionality is the fact that it requires access to a SharePoint document library. One was created for the sake of this article, but unfortunately cannot be shared externally. The scope of this article also does not allow explaining setting up a SharePoint document library, as that's an exhaustive topic on its own. Note that CMIS Lookups are not limited to SharePoint, that just happened to be the content system chosen for this article.
Given that it will be assumed you have access to a source that Grooper can connect to via a CMIS Connection.
The below image is showing a SharePoint document library with a single document in it and several columns added and populated with information.
Understanding the Content Model
|
The Content Model used here is very simple. It has no Content Types or any extraction setup. None of that is necessary to setup and demonstrate the lookup. It simply has a Data Model with several fields. |
|
Configuring a CMIS Connection
This configuration is specific to this article. While aspects of it can apply to any configuration, it's worth noting that this is not THE way to configure a CMIS Connection. This will be configured for a SharePoint environment. Note that the URLs in the image cannot be connected to externally, so attempting to copy this configuration verbatim will give you errors. This is meant as a guide, and will require an actual SharePoint environment on your end to be established, and real URLs from it supplied.
|
|
|
|
|
|
|
Writer's note - Having created this article and gone back through it, I now realize steps 10-13 here are not absolutely necessary to configure the CMIS Lookup. It will not impede one's ability to do so, and this is valuable information otherwise, as you can use the object created in these steps to map import and export properties for other activites. Feel free to not do steps 10-13. |
Configuring the CMIS Lookup
With an established connection to a CMIS repository, the CMIS Lookup can now be configured. This is done on a Data Model.
Version Differences
Prior to Grooper 2.9 the CMIS Lookup functionality did not exist.

