Set Uniface IDE Preferences

You can configure the behavior of the Uniface IDE by setting preferences in the IDE assignment and initialization files.

For more information, see Uniface IDE Logicals.

Specify a customized title for the Uniface IDE title bar

Set the IDETITLE logical in the ide.asn file. For example:

;ide.asn
[LOGICALS]
IDETITLE = Uniface IDE for ACME       

Configure the indentation of the Script Editor

To configure code indentation, edit the Script Editor definition in the [widgets] section of the usys.ini file:

SourceEdit=usrcedit(font=procboxfont;language=uniface;indenttabs=off;indentsize=4;indentguides=off)
  • IndentTabs—use tab characters for indentation; one of on (use tabs) or off (use spaces); default is on.
  • IndentSize—size of the indentation in space characters; default is 4.
  • IndentGuides—display indentation guides as vertical lines; default is off

Configure the length of time to wait before saving data in code editors

The Uniface IDE automatically saves data when it is changed. I n the Script Editorand Layout Editor this occurs after you have stopped typing for a defined amount of time. You can set this interval using the AUTOSAVE logical in the ide.asn file. For example:

;ide.asn
[LOGICALS]
AUTOSAVE = 10 ; = 10 seconds
                        

Specify the duration that a transaction is locked

Specifyy the duration in seconds using the AUTOUNLOCK logical in the ide.asn file. For example:

;ide.asn
[LOGICALS]
AUTOUNLOCK = 10
                        

Caution: The delay specified by this setting must not exceed the maximum time a lock can be held in your database. Consult your database documentation for details.

Create customized templates

If you want to create and edit custom templates, you must temporarily set the ALLOW_BROWSE_TEMPLATES logical to 1. This makes palettes and templates, which are normally hidden, visible and available for editing.

For more information, see Define Palettes and Templates.

Change default templates

To configure Uniface to display different default templates and snippets in the Resource Browser of each editor worksheet, set the value of the relevant palette logical in the ide.asn file. By default, these logicals are set to palettes and snippet libraries provided by Uniface.

If you define your own palettes, you can configure the Uniface IDE to use these instead.

The value must specify the object type and the name of the object: Type:ObjectName. For example: cpt:DSP_OBJECTS or libsnp:PROCSCRIPT.

For more information, see Default Palettes and Snippet Libraries.

Configure ProcScript migration

When importing object definitions created with a previous version of Uniface, Uniface ensures that all ProcScript modules are migrated to the appropriate code containers. Migration logicals enable you to control some aspects of the migration process.

For more information, see Migration Logicals.