Refinitiv Workspace Web Side by Side - Navigate Integration

This article will cover how to use the Refinitiv Workspace Web Side by Side Integration API to laucn an application on Refinitiv Workspace Web on the same browser.

Launching application on Refinitiv Workspace Web using navigate function:


Here is the sample web app code which demonstrate launching an application using navigate function.

Please create an index.html (or any preferred name) on your web server.

Then, you can add this code to the file.

            <!DOCTYPE html>
    <meta charset="utf-8" />
    <title>SxS Test Web App</title>
    <noscript>You need to enable JavaScript to run this sample</noscript>
    <script async src=""></script>
        function navigate(){
            app = document.getElementById("app").value;
            ric = document.getElementById("ric").value;
            target = document.getElementById("target").value;
            sxsWeb.navigate(app, sxsWeb.Context.ric(ric), target);
        window.SxsWeb = window.SxsWeb || [];
        window.sxsWeb = window.sxsWeb || function () {
        // Uncomment next line if you are using private network
        //sxsWeb ("config", "use-network", "private");
        sxsWeb('config','context','both');//none, both, send, receive
        sxsWeb("start", new Date());
        sxsWeb("onLoad", (status) => {
            if (status === 'ok') {
                console.log("Sxs Web is loaded");
                //enable test buttons
                document.getElementById("navigateButton").value = "Call navigate()";
            else {
                console.log("Some issue detected", status);
   Navigate function:<br/><br/>
   <pre>Application: <select name="app" id="app">
        <option value="THOMSONREUTERS.REALTIME.QUOTELINE">Q:Quote</option>
        <option value="KOxMNC">NEWS:News</option>
        <option value="THOMSONREUTERS.CHARTS.FINANCIALCHART">CHT:Chart</option>
        <option value="THOMSONREUTERS.REALTIME.THINMONITOR">MON:Monitor</option>
        <option value="APPxINDUSTRY">INDUS:Industy</option>
        <option value="THOMSONREUTERS.AIM.ROUTINES">RTNE:Routines</option>
        <option value="APPxCALCALLQ">ALLQ:All Quotes</option>
        <option value="APPxFXPOLLS">FXPOLLS:Fx Polls</option>
        <option value="APPxCompanyOverview">OV:Company Overview</option>
        <option value="EVzCORPxCORPACTCALENDAR">CACS:Corporate Actions</option>
        <option value="GxHOME">HOME:Home Page</option>
    <pre>RIC: <input type="text" id="ric" value="IBM.N"></pre>
    <pre>Target: <select name="target" id="target">
        <option value="replace">replace</option>
        <option value="popup">popup</option>
        <option value="tab">tab</option>
   <input type='button' id='navigateButton' disabled value='Not ready' onclick='navigate()'>

To test the application, simple launch Refinitiv Workspace Web on Chrome browser.

Then launch the sample web app on the same Chrome browser.

At (1) dropdown list is a sample application list.

At (2) is a RIC.

At (3) is a target.

Once you input (1) to (3) then you can click button at (4) to make an API call.

Explaination on the sample code and API calls.

Step 1. The script is downloaded from Refinitiv CDN

            <script async src=""></script>

Step 2.  Initialize the API.


        sxsWeb("start", new Date());
        sxsWeb("onLoad", (status) => {




Step 3. Make sxsWeb.navigate() API call

                        //prepare app, ric, target
            //app is an application ID
            //It is provided with sxsWeb.AppLibrary.<APP>
            //such as sxsWeb.AppLibrary.ALLQ("APPxCALCALLQ") or sxsWeb.AppLibrary.OV("APPxCompanyOverview")
            app = document.getElementById("app").value;
            //ric is passed to sxsWeb.Content.ric(ric) to create its context in JSON format
            ric = document.getElementById("ric").value;
            //target is "replace" or "tab" or "popup"
            target = document.getElementById("target").value;
            sxsWeb.navigate(app, sxsWeb.Context.ric(ric), target);