Installation Prerequisites
CXO Version 21.3.3 (or higher)
.NET 5.0 has to be installed
Installation
Install Longview Adapter
CXO configuration and Source Creation
Note: To be able to use the Longview Adapter you need a license key with Longview enabled.
...
After running these commands the adapter is configured and a first source is available. When multiple sources are required, run the create-source-in-adapter for each source needed.
Each source is created with a default configuration for dimensions, Longview symbol names, etc. These defaults need to be changed for the source to function properly. The next section explains how to configure the Longview sources.
Longview Source Configuration
A newly created Longview source needs additional configuration to function properly. Since the Longview adapter currently does not have a user interface, these configurations have to be done by running SQL scripts on the Longview configuration database.
Longview Connection
To show the currently configured connection information for the sources in the Longview adapter, run the following query on the configuration database:
...
Code Block | ||
---|---|---|
| ||
update sc set sc.Url = 'https://example-url-to-longview-source.com', sc.UserName = 'Administrator', sc.Password = 'secret_password' from LVSourceConfiguration sc join Source s on sc.SourceId = s.Id where s.Name = 'MyLongviewSource' |
Showing Dimension Configuration for a Source
To show the currently configured dimension mappings for a given source, run the following query with the correct source name:
...
Per dimension this shows the SymbolAttribute that needs to be extracted from Longview, plus the CXO attribute on the member that needs to get the extracted value. For instance, the ZGPNativeCurrency attribute can be mapped to the Currency attribute of the CXO Entity dimension.
Updating Dimension Configuration for a Source
For updating dimension configuration of a Longview source we identify the following scenarios:
...
NOTE: if you want to map a Longview dimension mapping to a CXO dimension that already has a Longview dimension mapped to it, first remove the existing mapping before adding the new mapping.
Create a Dimension Mapping
To create a new dimension mapping from a Longview dimension to a CXO dimension, run the following query with correct values for LVSourceConfigurationId and CxoDimension (you get these from running QUERY 3) plus the name of the LV Dimension you want to map.
...
After running this query, there will be no symbol names, symbol attributes or dimension description configured yet. Proceed to update these by following Scenario 3: Update Symbol Names, Symbol Attributes and Dimension Description
Remove a Dimension Mapping
To remove a dimension mapping from a Longview dimension to a CXO dimension, run the following query with correct values for LVSourceConfigurationId and CxoDimension (you get these from running QUERY 3).
...
Code Block | ||
---|---|---|
| ||
declare @lv_source_configuration_id uniqueidentifier = 'LV SOURCE CONFIGURATION ID HERE'; declare @cxo_dimension varchar(50) = 'CXO DIMENSION HERE'; declare @lv_dimension_name varchar(255) = ( select LVDimensionName from DimensionMapping where LVSourceConfigurationId = @lv_source_configuration_id and CxoDimension = @cxo_dimension ); update DimensionMapping set LVDimensionName = NULL where LVSourceConfigurationId = @lv_source_configuration_id and CxoDimension = @cxo_dimension delete from LVDimensionsExtractionConfiguration where LVSourceConfigurationId = @lv_source_configuration_id and DimensionName = @lv_dimension_name |
Update Symbol Names, Symbol Attributes and Dimension Description
To update symbol names, symbol attributes and dimension description for a LV dimension, run the following query with the correct LVSourceConfigurationId and DimensionName (you get these from running QUERY 4).
...
Code Block | ||
---|---|---|
| ||
update LVDimensionsExtractionConfiguration set SymbolNames = '...', SymbolAttributes = '...', DimensionDescription = '...' where LVSourceConfigurationId = 'LV SOURCE CONFIGURATION ID HERE' and DimensionName = 'DIMENSION NAME HERE' |
Create a Member Attribute Mapping
To create a new member attribute mapping for a specific dimension, run the following query with the correct DimensionMappingId (you get this from running QUERY 5).
...
Code Block |
---|
insert into MemberAttributeMapping (Id, DimensionMappingId, CxoMemberAttribute, SymbolAttribute) values ( newid(), 'DIMENSION MAPPING ID HERE', 'CXO MEMBER ATTRIBUTE HERE', 'SYMBOL ATTRIBUTE HERE') |
Remove a Member Attribute Mapping
To remove an existing member attribute mapping, run the following query with the correct DimensionMappingId and SymbolAttribute (you get these from running QUERY 5).
...
Code Block | ||
---|---|---|
| ||
delete from MemberAttributeMapping where DimensionMappingId = 'DIMENSION MAPPING ID HERE' and SymbolAttribute = 'SYMBOL ATTRIBUTE HERE' |
Source Metadata and Data extraction
Performs a full extraction (metadata + data) for the given source and year/scenario slice.
Important: The command removes all existing data and metadata from fact database and imports data only for the years and scenarios specified in the arguments
...