Stock Ticker Information in CXO Reports
This article will take you through the steps of creating a sample stock ticker web view portlet, using a free format report, within their CXO Report(s) and/or CXO Homepage. This can include your organizations stock ticker, your competitors stock ticker, and/or any stock ticker in general.
To summarize the process to achieve this end result, below is a summarized version of the steps:
- Creating a HTML file to include the details of the stock tickers
- Creating a Free-Format Report using a Web View Control
- Upload the HTML file to the CXO Application Server
Creating a HTML file to include the details of the stock tickers
- Launch Notepad or any text editor on your computer.
- Paste the following HTML code into Notepad:
<!-- TradingView Widget BEGIN -->
<div id="tv-medium-widget-d5a1c"></div>
<script type="text/javascript" src="https://d33t3vvu2t2yu5.cloudfront.net/tv.js"></script>
<script type="text/javascript">
new TradingView.MediumWidget({
"container_id": "tv-medium-widget-d5a1c",
"symbols": [
[
"Apple",
"AAPL"
],
[
"Google",
"GOOGL"
],
[
"Yahoo!",
"YHOO"
]
],
"gridLineColor": "#E9E9EA",
"fontColor": "#83888D",
"underLineColor": "#dbeffb",
"trendLineColor": "#4bafe9",
"width": 1000,
"height": 350,
"tradeItWidget": false,
"locale": "en"
});
</script>
<!-- TradingView Widget END -->
- Save the following document on your computer, by clicking File → Save As → with the following file format: "file_name.html" (Replace file_name with anything that you would like. Please do not forge the double quotes around your "file_name.html")
- Please remember to replace the stock tickers that your organization would like to see within the Stock Portlet. In my example, I have used 3 tickers (many more can be added): Apple*, Google and Yahoo.
*As trading tickets are unique APPL can also be written like NASDAQ:AAPL
Creating a Free-Format Report using a Web View Control
- Log into CXO and access the CXO-Designer to build a new "Free Format Report"
- From the controls on the right, please select the "Add Control" followed by "Web View"
- Please arrange the "Web View" portlet to size as needed
- Save and Exit
Upload the HTML file to the CXO Application Server
- In the report settings, you will now see a section called "Web View". Please expand this selection
- In the box 'URL': add the location on your server where you have placed the HTML file
- Select the checkbox called "Hide URL Bar"
- You now have a Stock Ticker Web Portal that will provide live stock ticker information