4D Blog

Home Product Use duplicated merged client applications

Use duplicated merged client applications

January 12, 2022

Product

As a publisher, you sometimes want to duplicate a merged client application to connect each of them to their dedicated 4D Server. Let’s see how to do this.

When you are a software publisher, some of your customers sometimes have many instances of your merged server application, for example, a merged server application for each company of a group. In this kind of deployment architecture, your customer’s officers often ask you to install a merged client application for each merged server application on their computer because they want to use the software for each company.

Since the merged server application address is no more stored in the EnginedServer.4DLink file inside the merged client application package (to keep it untouched), all merged client applications shared the same server address stored in the user preferences folder.
From now on, you have a new buildApp key at your disposal to make each duplicated merged client application use its own user preferences folder (based on its application path):

<BuildApp>
  <CS>
    <ClientUserPreferencesFolderByPath>True</ClientUserPreferencesFolderByPath>

Just remember that to bypass the automatic network broadcasting and make each merged client application connect to its last Server, you have to publish each merged server application on a port other than the 4D standard one (19813) and on a port other than the one defined during buildApp.

Of course, when this behavior is activated, the Folder and Get 4D Folder commands still return the correct folder for each merged client application.

The cherry on the top, if you use the magic star parameter of the Open form window command, the windows of each merged client application will retrieve their own size and position, fitting users’ desktop organization.

The same architecture can also be helpful for developers or testers who want to connect to a test Server, pre-production server, or production server. This way, they can have duplicated merged client applications connected to their dedicated Server.

Sample

A group uses the myCRM software to manage their companies customers. Each company has its own myCRM Server. To avoid a merged client application connecting automatically to the first server application found on the subnet, each server application is published on a port number different from 19813 and defined during buildApp.
Managers of the group can easily connect to the Server they want by duplicating the merged client applications.
At the first launch, just maintain the ALT key pressed on the keyboard to display the 4D standard connection dialog. Then enter the proper server credentials and connect the client application to the Server. The server credentials are then stored in a folder related to the merged client application path.
After that, each merged client application will connect automatically to its dedicated server application!

 

Discuss

Tags Deployment, v19 R4, v20

Latest related posts

  • November 17, 2025

    Goodbye 4D Internet Commands – Hello Modern Internet Integration

  • November 14, 2025

    Event Report in 4D Qodly Pro: See Every Interactions at a Glance

  • November 14, 2025

    4D Qodly Pro: Page Zoom Controls

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 4D View Pro
  • AI
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy