Page tree
Skip to end of metadata
Go to start of metadata

These views in Nexus Service Station (Register_1, Register_2...) are used to allow the user to fill in personal information required for producing the card. If the user clicks Continue without having entered text correctly, an error message is shown.

Multiple register views can be configured in succession in an app flow to accommodate more fields than can be fit inside a single screen.

Examples of screens:

Example of screen with error message:


Configurable parameters

Parameter

Possible Values

Mandatory

Description

fields

The name of a field section

Yes

Provides a link to a field section which holds all fields which this view should display

Expand/Collapse All

 Fields

A field section must be defined for each Register view. In the field section you specify the settings for the fields. Each field can have the following settings:

Setting

Possible Values

Mandatory

Description

attribute

Any valid ID

Yes

The name of an attribute in the User model.

label

A string key in the Locale file

Yes

The name of a string key in the Style file which contains the label to display for this field.

validators

A comma separated list of validators defined in the validation section

No

The validator(s) to use on this field.

readOnly

true, false

No

A flag indicating if this field should be read only, defaults to false.

repeat

true, false

No

A flag indicating if this field should be duplicated for the user to repeat input a second time, defaults to false.

 Validation

A validation section must be added in order to use validators in the Register views.

Each field can have the following settings for validation:

Setting

Possible Values

Mandatory

Description

name

Any text

Yes

The name used to refer to this validator.

type

<class name>

Yes

The name of the C# class defining this validator.

assembly

<assembly name>.dll

Yes

The name of the assembly where this validator is defined.

RequiredValidator parameters

Parameter

Possible Values

Mandatory

Description

message

A string key in the Locale file

No

The name of a string key in the Style file which contains the message to display if the validation fails.

SwedishSsnValidator parameters

Parameter

Possible Values

Mandatory

Description

message

A string key in the Locale file

No

The name of a string key in the Style file which contains the message to display if the validation fails.

RegexValidator parameters

Parameter

Possible Values

Mandatory

Description

message

A string key in the Locale file

No

The name of a string key in the Style file which contains the message to display if the validation fails.

Pattern

Any Regex pattern

Yes

The Regex pattern.