Creating Multiple URLs for use with DataHub WebView
Can I create different URLs for the DataHub WebView? I would like different operators to be able to use different URLs with a different set of web pages that are relevant to them.
It is easy to add unique URLs for the DataHub WebView. Find the SecureCloud.asp file located at "C:\Program Files\Cogent\Cogent DataHub\Plugin\WebServer\html\Silverlight". Make a copy of this page. Open the page in Notepad or some other text editor. Look for the following lines of code (see below).
<object id="DataHubWebView" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="DataHubWebView.xap"/>
<param name="initParams" value="<%= initparams %>"/>
We are going to modify one line of code.
<param name="initParams" value="<%= initparams %>" />
We are going to Add a Start page to the initParams by using the following
<param name="initParams" value="<%= initparams %>,Page=Cogent/Demo_5" />
This will ensure anyone who goes to the new URL will start with the page Demo_5. Then you could add links to any of the pages you want this user to see. If the page is not linked and is not the startup page then the user will not be able to navigate to it.
To use the Page= command you MUST not use the start page selection in the user interface.
You can make as many copies of this file as you like and each page will be a unique URL that can have a unique startup page.