Skip to main content
Skip table of contents

Client Configuration Parameters

Die nachfolgenden Inhalte sind nur in englischer Sprache verfügbar.

Information

  • The following parameters can be set in the

    • command line or

    • planta.ini

  • All parameters must be defined in lowercase.

  • The settings in the command line overwrite settings from planta.ini.

Details

Type

Example

Comment

command line

planta.exe server = planta4:21345

E.g. useful in Windows shortcuts

planta.ini

File planta.ini is located in the directory of the planta.exe

  • Binary file (planta.exe) can be started directly.

  • Or default Parameters can be set for several server instances that uses the same client.

  • Additional characters like spaces or quotes are not stripped and should thus be avoided.

Parameter

Values

Default Value

Example

Description

Available from

srv

A service record in DNS

srv=_ppms_production

Client will connect to the server referenced by the given service record in DNS

server

<host name or IP address>:<port number>

server=planta4:20000

Client will connect to the given server and IP

  • It is possible to add more than one server. The server used is selected randomly.

log

0 , 1, 2, protocol

1

log=protocol

Possible (Client) loglevels are:

  • 0: no log

  • 1: support log

  • 2: programmers log

  • protocol: support log, programmers log and protocol dump of the XML client<>server

The Client logfiles can be found under %client folder%/Log if no other path is specified in the working_folder parameter.

This folder is created when it is missing, logging is activated and the user starts the Client for the first time.

explore

true, false

false

explore=true

Shows all the XML messages in the client (must be used with log=protocol)

  • CTRL+double click unfolds a node and all of its children

  • SHIFT+double click opens a node in your favorite XML viewer

This is a debug parameter and for internal use only.

encrypted

true, false

false

encrypted=true

Communicates with server using encrypted SSL protocol. PLANTA recommends that you use PLANTA secure.

individual_parameters

{para1:'value1',para2:'value2'}
(no space)

The Client will send an XML to the server in the following form:

individual_parameters={para1:'value1',para2:'value2'}

These values are stored in system variable @83 on the part of the server

credential_manager

true, false

false

credential_manager=true

Enable password credentials on the part of the client.

close_on_server_disconnect

true, false

false

close_on_server_disconnect=true

If this parameter has value "true", the Client is automatically closed upon server crash or network error

authentication

kerberos

kerberos

authentication=kerberos

Use Kerberos authentication on the part of the Client

spn

PLANTA/planta_server
@PLANTA.de

PLANTA/planta_server
@PLANTA.de

spn=PLANTA/planta_server@PLANTA.de

Kerberos service principal name (SPN) used in authentication

compressed

true, false

true

compressed=false

Optional parameter that enables compression

compress_level

{0..9}

6

compress_level=9

Compression level defines the level of compression: 0 for no compression, 9 for best compression

enable_exec_python_script

true, false

true

enable_exec_python_script=false

Allows to deactivate the processing of client_exec()/server_exec() API calls

reuse_client_instance

true, false

false

reuse_client_instance=true

Prevents multiple clients from being opened for the same server. If this parameter is set to "true" and a client is opened for a server for which there is already an existing client with this very parameter, then the existing client will be focused and the reuse_client_instance() method in session.py will be called with the value of the individual_parameters parameter.

If the client is opened via an Application Link, this parameter will always be treated as if it were set to "true".

config

Name of the configuration file in the registry

allows to refer to a configuration defined in the registry

active_border_color

Hex Color Code

active_border_color=#FFFFFF

Tabs and frame color of an active module

caption_text_color

Hex Color Code

caption_text_color=#808000

Font color of module tab

get_domain_info (bool)

true, false

false

If this parameter is true, then the Client will add information on the domain to the handshake message
This parameter will be removed in one of the upcoming Client versions.

get_credential_info (bool)

true, false

false

If this parameter is true, then the Client will add information on credentials to the handshake message
This parameter will be removed in one of the upcoming Client versions.

distributor

pl-ch

distributor=pl-ch

If the value of "pl-ch" is selected, the website address planta-gmbh.ch of PLANTA Switzerland will be displayed in the program background

ole_shrinking

true, false

true

If this parameter is set to false, the dynamic OLE resizing functionality will be disabled.
It is planned to implement the dynamic OLE resizing functionality as default in an upcoming Client release. From that release on, this parameter will no longer be supported.

client_dragndrop

true, false

true

client_dragndrop=false

If this parameter is false, the drag&drop functionality on the part of the Client will be disabled and the old implementation on the part of the server will be enabled, so that the Undo functionality for Drag&Drop field to field will not work.

autologin

true, false

false

autologin=true

If the user and password parameters are specified but the autologin is false, the user data fields in the login box will be filled with the defined parameters. However, to log in, the user has to confirm by pressing Enter or clicking OK. If autologin is set to "true" and the user and password parameters are defined, the Client will log in the user automatically.

user

Define a user name which will be applied to the user text field in the login dialog window

password

Define a password for a given user which will be inserted in the user text field in the login dialog window

keepalive

int value, possible 1-900

60

keepalive=300

Defines how long the server will keep the connection to the Client after the last received message

mutual

true, false

true

mutual=false

Enables mutual ssl authentication

working_folder

folder path; environmental variables can be used

Defines a path where the Log and OLE folders will be created

write_dump_on_exception

true, false

true

write_dump_on_exception=true

Defines whether dumps should be created when the client crashes with an exception. The dumps will be created in the working_folder.

To also create a dump file in case the client crashes with an unhandled exception, the client can be started using the StartWithDump.ps1 in the client directory.

C 39.5.34

Using the "reuse_client_instance" Parameter

  • The reuse_client_instance parameter prevents multiple clients from being opened for the same server connection.

  • It only works if the server/port combination is written into the command line parameter or into planta.ini.

  • The parameter needs to be True when you open the client and needs to remain True for every subsequent client.

  • If you try to open the 2nd client, the first one will be focused and the reuse_client_instance() method under /Lib/Main/customer/session/session.py or /Lib/Earth/customer/session/session.py will be executed.

  • When the function is called it has 2 parameters: individual_parameter which contains the value of the individual_parameters client parameter and window_handle which is the handle to the client window.

  • This method can be overwritten by changing the file. If you update to a newer client version, you need to modify the updated file again.

Example

  • An external application contains all the projects in PLANTA project.

  • A user wants to switch quickly from this application to a specific project in PLANTA project.

  • The external application can be modified to contain a hyperlink via which the PLANTA application can be called with a specific individual_parameters value which contains an identifier of the project that is known to PLANTA project.

  • The session.py can be modified to use this value to look up the project in PLANTA and to open the project workflow.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.