KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: User Mode Component
PRODUCT: 4D | VERSION: 11.4 | PLATFORM: Mac & Win
Published On: May 28, 2009
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

A "user mode", as 4D developers may be familiar with, is often useful to correct or modify records without the being held to the same application or business restrictions that an end-user faces. This tech note describes a component which allows adding such a user mode to databases.

Download Complete Tech Note and Example: Windows | Mac

Commented by Thomas Fitch on July 17, 2009 at 10:15 AM
This Tech Note is great. Lots of developers in 4D 2004 expose User Mode to their end users (or some sub-set of their users) to save development time. This helps let certain users access something similar in 4D v11 SQL and can be invaluable to the developer who is really missing User Mode.
Commented by Chris Visaya, 4D Inc. on May 29, 2009 at 2:31 PM
Oops! We've since updated the source and component to address the typing error you brought up, Mark. Our apologies, and many thanks for letting us know!
Commented by Mark L. Jeffreys on May 28, 2009 at 5:22 PM
Why does the source code included in this tech note not contain any variable typing? There are no typing statements for the locals in the methods, and no Complier_ methods either. The source, and I presume the component, is set to "Type the variables" rather than "All variables are typed." The latter would have been preferred, along with the appropriate typing, since copying over the methods and form from the source generates hordes of typing errors. I am not willing to put a component into actual use when the typing is just "assumed" to be correct!

-- MLJ