4D Blog

Home Product Smarter Copy-Paste to Protect Your Data

Smarter Copy-Paste to Protect Your Data

July 15, 2025

Product

You work across environments — test, production, staging — and you copy more than text. Sometimes it’s formulas. Sometimes it’s data that shouldn’t move as freely as your cursor does. With 4D 20 R10, paste behavior gets smarter.

Formulas copied within the same app stay intact. But across environments, only values are pasted — never the underlying logic.

Expressions and formulas

Styled texts and 4D Write Pro documents can contain formulas that are executed on demand or during specific events, such as printouts or exports.
These formulas are generally “harmless”. Whether they return the current date or a page number is of little importance. However, when they reference database elements or methods, things can become more sensitive.

Contexts and applications

When the environment is under control, there’s no reason to filter anything. Copying a formula from one 4D Write Pro document to another within the same application is no problem at all. The same applies to styled text.
If a user has access to formulas that display a salary or social security number, there’s no reason they shouldn’t be able to copy those same formulas to another document in the same environment.

On the other hand, if it’s not the same application — but based on the same structure (for example, one in test, the other in production) — the situation is quite different. In the latter case, copying-pasting can have completely unintended consequences.

Values vs. formulas

When a copy action is performed, the formula (or formulas) are copied to the clipboard, along with the values returned by those formulas — whether text, dates or images.
When pasting, depending on the context, either the formula or just the resulting value will be used.

When pasting within the same application, the formulas are pasted as-is.

However, if pasting into another environment, only the values — calculated at the time of copying — will be pasted, either as plain text or as an image. The formulas themselves will not be transferred.

Conclusion

This behavior is not optional; it is active starting in 4D 20 R10.
A small change in behavior — a big step toward better data security and integrity!

Discuss

Tags 20 R10, 21, 4D, 4D Write Pro, Formula, Security

Latest related posts

  • February 3, 2026

    4D Write Pro – Adding a margin automatically when bullets are set using standard actions

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

Roland Lannuzel
Roland Lannuzel
• Product Owner & 4D Expert • After studying electronics, Roland went into industrial IT as a developer and consultant, building solutions for customers with a variety of databases and technologies. In the late 80’s he fell in love with 4D and has used it in writing business applications that include accounting, billing and email systems.Eventually joining the company in 1997, Roland’s valuable contributions include designing specifications, testing tools, demos as well as training and speaking to the 4D community at many conferences. He continues to actively shape the future of 4D by defining new features and database development tools.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • Release infos
  • 4D View Pro
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Qodly Pro
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google 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 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google 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 vscode Web Word processor
Subscribe to 4D Newsletter

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