Vision Portfolio Management FAQ: Model Data
Goal
Description
-
DataRecord classes
are used to manage sets of related
information about a specific entity. These classes provide a way to
organize data about an entity into manageable substructures.
DataRecord instances are normally accessed via a property
defined at the Entity instance with which it is associated.
DataFeed Assumptions
DataFeed | Fields |
---|---|
ModelDataFeed | id, date, model1,model2, model3 |
Using Excel to load model data
- Create the DataRecord, ModelData
- Select Create DataRecord from VUpload menu
- Enter ModelData as the new DataRecord type
- Select DataRecord from the From List Box
- Select Company from the Link To Entity... list box
- Enter modelData in the access via: text box.
- Select Time Series to indicate that the model data varies over time.
- Select OK
The feed ModelDataFeed has been created, which is found in the Entity Extender feed category.
- Creating Properties for ModelData.
- In this example, you are defining the properties model1, model2, and model3 for ModelData.
Set up the spreadsheet to look like the following. Note that the feed name
is in the top left of the range.
PropertySetup classId Property tsflag datatype ModelData model1 N Number ModelData model2 N Number ModelData model3 N Number
Note that if you want to explicitly limit the type of value to integer or non integer numbers, use the dataType of Integer or Double. - Select the entire range, including the feed name.
- In this example, you are defining the properties model1, model2, and model3 for ModelData.
Set up the spreadsheet to look like the following. Note that the feed name
is in the top left of the range.
- Creating ModelRecord Instances For Companies Over Time
- Assuming that you have already loaded the CompanyMaster,
set up the spreadsheet to look like the following example:
id date model1 model2 model3 ibm 9710 4.9 4.7 4.6 ibm 9711 4.3 4.8 4.2 ibm 9712 4.3 4.2 4.9 gm 9710 8.4 8.5 8.9 gm 9711 7.9 8.1 8.5 gm 9712 8.3 8.5 8.3
- Select the range.
- Select Upload Data from the VUpload menu.
- Select the category EntityExtender and the feed name ModelDataFeed.
- Select the Range button.
- Assuming that you have already loaded the CompanyMaster,
set up the spreadsheet to look like the following example:
- Access the Data
- set up the spreadsheet to look like the following example:
modelData model1 modelData model2 ibm gm
- Select the range.
- Select Set Defaults from the Vision menu.
- Enter Company as the EntityType.
- Select Get Entity By Item Data from the Vision menu.
The output will look similar to the following example:
modelData model1 modelData model2 ibm 4.3 4.2 gm 8.3 8.5
Your Extraction is complete.
- set up the spreadsheet to look like the following example:
Using VAdmin to load model data
- Create the DataRecord, ModelData
- Select Add New DataRecord from the Schema menu
- Enter ModelData as the new DataRecord type
- Select DataRecord from the Based on DataRecord List Box
- Select Company from the Link To Entity... list box
- Enter modelData in the Link Property: text box.
- Select Time Series to indicate that the model data varies over time.
- Select OK
The feed ModelDataFeed has been created, which is found in the Entity Extender feed category.
- Creating Properties for ModelData.
- In this example, you are defining the properties model1, model2, and model3 for ModelData.
Set up a text file look like the following. Each column should be seperated by a tab.
classId Property tsflag datatype ModelData model1 N Number ModelData model2 N Number ModelData model3 N Number
Note that if you want to explicitly limit the type of value to integer or non integer numbers, use the dataType of Integer or Double. Save the File (ie property.txt) and put it in the /localvision/upload/feeds directory.
- Select the file name from the Pending DataFeeds list box
- Select the category PropertySetup from the DataFeeds list box
- Select the feed PropertySetup.
- Select the Update button.
- In this example, you are defining the properties model1, model2, and model3 for ModelData.
Set up a text file look like the following. Each column should be seperated by a tab.
- Creating ModelRecord Instances For Companies Over Time
- Assuming that you have already loaded the CompanyMaster,
set up a tab delimited text file to look like the following example:
id date model1 model2 model3 ibm 9710 4.9 4.7 4.6 ibm 9711 4.3 4.8 4.2 ibm 9712 4.3 4.2 4.9 gm 9710 8.4 8.5 8.9 gm 9711 7.9 8.1 8.5 gm 9712 8.3 8.5 8.3
Save the file and put it in the /localvision/upload/feeds directory. - Select the file name from the Pending DataFeeds list box.
- Select the category EntityExtender and the feed name ModelDataFeed.
- Select the Update button.
- Assuming that you have already loaded the CompanyMaster,
set up a tab delimited text file to look like the following example:
- Access the Data in Excel
- Open Excel
- Set up the spreadsheet to look like the following example:
modelData model1 modelData model2 ibm gm
- Select the range.
- Select Set Defaults from the Vision menu.
- Enter Company as the EntityType.
- Select Get Entity By Item Data from the Vision menu.
The output will look similar to the following example:
modelData model1 modelData model2 ibm 4.3 4.2 gm 8.3 8.5
Your Extraction is complete.