User`s guide
Customized Components
7-19
Customized Components
In this section...
“Fetching Securities Data and Displaying It in a Table” on page 7-19
“Displaying Securities Data in Two Tables” on page 7-24
Note: These examples require the Datafeed Toolbox™ software.
Fetching Securities Data and Displaying It in a Table
This example shows how to create a component that fetches securities data and displays
it in a report as a table.
1
Create a component named Equity Values in the class folder named
CStockTicker.
2
Give the component one string property named Ticker, and specify its attributes.
a
In the Options pane of the Report Explorer, double-click
New_String_Property.
b
For Property name, specify a valid MATLAB variable name.
c
Specify the property's data type. In this case, Ticker is a string value, which is
the default data type.
d
Specify the property's default value.
Because this example fetches ticker values for the security Google, set the
Default value to 'GOOG'. (The single quotation marks are required to specify a
string value for this field.)
Your specified settings appear in the Code Preview pane.