Client-Konfigurationsparameter
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 |
|
Parameter | Values | Default Value | Example | Description | Available from |
---|---|---|---|---|---|
| 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
| ||
| 0 , 1, 2, protocol | 1 | log=protocol | Possible (Client) loglevels are:
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 )
| |
| true, false | false | encrypted=true | Communicates with server using encrypted SSL protocol. PLANTA recommends that you use PLANTA secure. | |
| {para1:'value1',para2:'value2'} (no space) | The Client will send an XML to the server in the following form:
These values are stored in system variable @83 on the part of the server | |||
| 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 | |
| true, false | true | compressed=false | Optional parameter that enables compression | |
| {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 If the client is opened via an Application Link, this parameter will always be treated as if it were set to "true". | |
| 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 | ||
| true, false | false | If this parameter is true, then the Client will add information on the domain to the handshake message | ||
| true, false | false | If this parameter is true, then the Client will add information on credentials to the handshake message | ||
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 | ||
| true, false | true | If this parameter is set to | ||
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 | 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 | |
| folder path; environmental variables can be used | Defines a path where the Log and OLE folders will be created | |||
| 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 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 theindividual_parameters
client parameter andwindow_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.