Skip to main content

Selecting account a path when connecting to server

  • August 21, 2025
  • 2 replies
  • 6 views

Héctor Cortiguera
Forum|alt.badge.img

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
------------------------------

2 replies

Héctor Cortiguera
Forum|alt.badge.img

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
------------------------------

Héctor Cortiguera
Forum|alt.badge.img

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
------------------------------