Configuration of the preview client

Configuration of the preview client

This section describes how to configure the InterFormNG2 preview client. You need e.g. to  configure the client after a new installation.

 

The preview client section explains how to use the preview client.

 

The configuration is divided into four parts:

 

1.Enable of the preview option globally on the InterFormNG2 host.

2.The main configuration of the preview client.

3.The log configuration of the preview client.

4.You also need to enable the use of the preview client in the designer.

 

 

Configure preview globally on the InterFormNG2 host

Before you can use the preview client you need to enable it globally in InterFormNG2. You do that by signing on as a system administrator and then configure preview connections to the host as described in the section, Remote Design preview setup.

 

On the host you need to decide what port number to use for previews. This is default 8110 and should also be referenced on the client settings below as the preview port.

 

If you want a secure https connection, then you also need to setup a keystore on the host (recommended) or to use the internal demo keystore of InterFormNG2.

 

Please note, that you need to stop and start the InterFormNG2 service (on the host) in order to active any change on the host preview configuration.

 

After a restart of the service you should consider to check the system log to verify, that the keystore and matching password could be used.

 

 

Main configuration

The first time you start the InterFormNG2 preview client you will see this in the middle of the pop up window:

 

NG2PreviewClientConf0001

 

Each of the parameters are covered below:

 

Protocol

Here you setup how secure the connection should be. The possible values are:

http: If you select this, then the connection is unsecure, but it easier to setup. You can e.g. first ensure, that you can get an unsecure connection and then switch https, when you are sure that the http value works.

https: This sets up a secure connection, but for this you also need to configure a keystore and setup a keystore path and password below.

 

Host

The machine, where InterFormNG2 is running. If you are running the preview client on the same machine as InterFormNG2, then you should here type localhost or 127.0.0.1.

 

Service port

This is the port number, that you use for accessing the InterFormNG2 web interface on the host. The default value in InterFormNG2 is 8086, so you should probably change the value to that.

 

Preview port

Specify the port via which the preview client should preview. This must match the port number specified on the hosts global preview settings.

 

Keystore path

This is the path to the local keystore, that should be used for the preview client. The local keystore should match the preview keystore of the host. The default value refers to a simple built in keystore, but it is recommended to use your own keystore. This is covered in the section: Create a keystore for the preview client.

 

Keystore password

Here you type the password for the local keystore. This parameter is optional. If the keystore has no password, then you can of course ship this parameter.

 

Tenant

Here you type the name of the tenant on the InterFormNG2 host, that you want to connect to. If the InterFormNG2 host only has a single tenant, then you can leave this blank.

 

User name

The user on the tenant that is used for signing on to the InterFormNG2 host.

 

Password

The password for the user specified above on the InterFormNG2 host.

 

 

 

Log configuration

In the bottom of the Preview client configuration you can setup the log level of messages, that you want to see in the preview client:

 

NG2PreviewClientConf0002

 

The default and recommended setting is shown above. Especially debug and trace should be avoided if possible - they are only for special debugging sessions.

 

The message decrease in severity and the increase in number from left to right:

 

Error

Only error messages are shown in the log.

 

Warning

Only warnings are shown in the log.

 

Info

All information messages are shown in the log.

 

Debug

Includes a lot of debug information. This setting effects performance.

 

Trace

Includes even more debug information as it dumps a lot of data in the log. This setting effects performance.

    • Related Articles

    • Installing the preview client

      As an aid to the designer you can choose to install a preview client. The preview client works together with the designer and constantly merge the current template with the selected sample file in the designer. The preview client can e.g. be used, if ...
    • Introduction to the Preview client

      IMPORTANT NOTE: This section below describes an optional preview client for InterFormNG2. The preview client was created long ago as an aid for users to get the optimal result view while working in the designer. Back then the result view in the ...
    • Create a keystore for the preview client

      The section below describes how you can create your own keystore for the InterFormNG2 preview client. Another section covers the full configuration of the preview client - including how to refer to a keystore, that you have created yourself. You need ...
    • Preview client log

      If the preview client of InterFormNG2 is unable to connect with the InterFormNG2 host, then you can use the section: Preview client problem: Login failed. A part of debugging connection problems is also to look into both the system log, but also the ...
    • Preview client problem: Login failed

      If you try to run the preview client, and you see this error: Login failed, check connection details and credentials. Then many different things might have gone wrong. Below there is a checklist, that you can use in order to verify why the preview ...