In this topic, you will learn how to configure the Market Development solution to meet specific needs in your organization.
Prevent duplicate records
To support the updating of data using the Append Data to Layer and to ensure accurate statistics within the information products of the solution. You'll need to add an attribute index which applies a unique constraint to facility_id field in the facilities layer.
To add an unique constraint, complete the steps below:
- Sign in to your ArcGIS Enterprise portal.
- At the top of the site, click Content.
- On the My Content tab, type Assets in the search box.
- On the left under Folders, click the folder Market Development was deployed to.
- On the right side of the page, click Assets to view it details.
- Under the Layers section, click Assets.
- In the URL section , click View.
A new tab opens into the ArcGIS REST Service Directory for this item.
- In the URL bar of the browser, edit the URL with the following changes:
- Add the word admin between /rest/ and /services/. (For example: ArcGIS/rest/admin/services/assets.)
- Scroll to the bottom of the page and click on Add to Definition.
- A window appears where you will be entering JSON to add an index to the layer.
- In the text box , copy the following:
{ "indexes" : [{ "name" : "asset_id_Index", "fields" : "asset_id", "isAscending" : false, "isUnique" : true, "description" : "" }] }
- Click Add To Layer Definition to commit update.
The following message will appear if add was successful. {"success": true}
- In the browser, return to the Assets layer tab and click on the Data tab.
- Click the Fields and click on Asset.
This page reveals the properties for the asset_id field. Under Settings, the Unique field is set to Yes.
Load data
Information must be loaded before using the Market Explorer Dashboard and Sales Performance Dashboard. The AssetSource and SalesdataSource can be used to organize your business information before loading into ArcGIS the accompanying sales data in your organization.
Note:
Ensure you populate the Asset_ID column in the AssetSource with unique values.
You may need to load existing assets or sales data from a spreadsheet. Review the maps or applications provided with the solution and determine what, if any, source data you would like to load.
If you do not have an inventory of assets and sales data in ArcGIS, you may have them in a spreadsheet or another system you can export to a spreadsheet. If you don’t have a spreadsheet already, you can use the sample .csv files included with the solution (AssetSource, SalesdataSource) to inventory your assets and sales data.
To load your assets or sales data from a spreadsheet, complete the following steps:
- Sign in to your ArcGIS organization and browse to the AssetSource item.
- Open the items details page.
- Click Download.
- Edit the CSV file and populate your facility information in the document.
Note:
At a minimum, you must provide a unique Asset_ID and the latitude and longitude for each facility in the FacilitySource. If you don't have a unique ID, you can edit the CSV file in Excel and copy this formula into the first row of the facilityid column: =CONCATENATE("Asset-", TEXT(ROW(A1),"00000")). You can then drag the right corner of the cell to fill the formula down for all facilities, giving each a unique ID.
- In your ArcGIS organization at the top of the site, click Content.
- Browse to the Assets feature layer.
- On the item details page, click Update Data and select Append Data to Layer.
- Under Filename, choose your .csv file.
- Click Upload and Continue.
- Uncheck Update existing features.
- Click Show field matching to map the fields.
- Click Apply Updates.
- Repeat steps 1 through 12 by downloading the SalesdataSource CSV file and updating the Asset Sales Data table.
To load your data for Region Overlay, Subregion Overlay, and Competitors from a shapefile or file geodatabase, complete the following steps:
- Create a .zip file of your shapefile.
- In your ArcGIS organization, browse to the feature layer you want to populate.
- On the feature layer item details page, click Update Data and select Append Data to Layer.
- Under Filename, click Choose File.
- Browse to your .zip file and click Open.
- Under Contents, select Shapefile.
- Click Upload and Continue.
- Choose the layer that you want to load data into and the layer that contains the updated data.
- Uncheck Update existing features.
- Click Show field matching and map the fields between the two layers.
- Click Apply Updates.