4D Blog

Home Tips Customize the admin dialog with 4D code

Customize the admin dialog with 4D code

October 1, 2019

Tips

There have been requests to modify the 4D Server administration dialog, with some customers wanting to remove information and others wanting to add customized information. This AdminWindow component shows you how to do just that. You can use it “as is” or modify it to fit your needs.

In a previous blog post, we showed you how to build a web-based administration window. However, if you’re interested in a purely customized interface with 4D code, then this blog post (along with the related HDI) will show you how!

The component removes the graphics from the first screen and enhances it with system information. It also contains two additional pages:

  • DB Measures –  an overview of currently locked records
  • Locked Records –  an overview of the query operations

 

You can use the header to sort the list box by the count of operations or the total time used for them. You may want to use this dialog to find a missing index or to optimize queries. The Real Time Monitor page enhances the built-in monitor. It’s always displayed with peak time (operations needing more than half a second). In addition to currently running operations, it also shows the previous slowest operations. Recording only when a page is opened, without history.

The images below show the difference between the component’s default interface and the classic 4D Server Administration window.

Component default interface:

4D Server Administration window:

blank

The source code for this component is available on Github. To test it, simply call the Monitor_Start method in the On Startup database method. This way, you’ll see the customized dialog once your database is opened. 

Feel free to modify the component based on your own needs. Remove, hide, or modify pages and content as you wish. Add your own content, such as your own process list, your own status variables, your own licensing information, etc. Notice that the code is designed to be used on the client computer (it fetches the information from the server automatically).

Compatibility note: This example is made using 4D v17 R5 and a project database.

 
Discuss

Tags 4D server, Administration, Project, Project database, v17 R5

Latest related posts

  • June 27, 2025

    SHOWCASE: SMART COMMENT MODERATION WITH AI

  • April 28, 2025

    Tips & Tricks for your 4D Apps – April 2025 Edition

  • April 9, 2025

    Restrict data according to privileges or information saved in session storage

Thomas Maul
Thomas Maul
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 4D View Pro
  • 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 for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio 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