Skip to main content

Hi all

I'm trying to connect to our database using the Visual Studio Code extension. I've configured the server data in the JSON file, but it's connecting to a XDEMO account so it's not useful to me.

So, the account is XDEMO and it connects to the server in this path: "/usr/uv/XDEMO"

In our database, we have several accounts: "POSVENTA5", "GEN4GL", etc.

I need to connect to one of this accounts, that are in the path "/u2/quiter/POSVENTA5", etc.

How can I do this?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

Hi all

I'm trying to connect to our database using the Visual Studio Code extension. I've configured the server data in the JSON file, but it's connecting to a XDEMO account so it's not useful to me.

So, the account is XDEMO and it connects to the server in this path: "/usr/uv/XDEMO"

In our database, we have several accounts: "POSVENTA5", "GEN4GL", etc.

I need to connect to one of this accounts, that are in the path "/u2/quiter/POSVENTA5", etc.

How can I do this?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

I tried the solution proposed by @

I edited the extension and changed this code:
.vscode\\extensions\\rocketsoftware.rocket-mvbasic-2.7.1\\out\\online\\online.js

            let accountName = server.account;
            // if (datasource.isUV()) {
            //    accountName = "XDEMO";
            //}
            
            if (server.account === undefined || server.account.length === 0) {
                accountName = yield vscode.window.showInputBox({
                    placeHolder: "Please enter account",
                    accountName: true
                });
                if (accountName === undefined) {
                    return;
                }
            }

I added a field "account" to the server definition in JSON. However, the field server.account is empty. Is there a mapping file so I can add new data to the JSON config?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

I tried the solution proposed by @

I edited the extension and changed this code:
.vscode\\extensions\\rocketsoftware.rocket-mvbasic-2.7.1\\out\\online\\online.js

            let accountName = server.account;
            // if (datasource.isUV()) {
            //    accountName = "XDEMO";
            //}
            
            if (server.account === undefined || server.account.length === 0) {
                accountName = yield vscode.window.showInputBox({
                    placeHolder: "Please enter account",
                    accountName: true
                });
                if (accountName === undefined) {
                    return;
                }
            }

I added a field "account" to the server definition in JSON. However, the field server.account is empty. Is there a mapping file so I can add new data to the JSON config?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

I've found it.

In the function getServers:

        if (!uniqueServers.some(uniqueServer => uniqueServer.name === serverName)) {
            let uniqueServer = new fsprovider_1.Server(serverName);
            uniqueServer.address = server.address;
            uniqueServer.username = server.username;
            uniqueServer.password = server.password;
            uniqueServer.account = server.account;
            uniqueServer.port = server.port;
            uniqueServers.push(uniqueServer);
        }


------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------