Additional NGX-PFE Features

1. Display of Validation Messages on the Master page

It is possible, to display generic error messages above the currently displayed page.

The master page checks the state for a configurable key. If no key is configured, the fallback validationErrorData is used.

If a value is added to this state key, the message gets displayed. To remove the message, set the key to an undefined/empty value. All values from these keys are translated with ngx-translate.

In combination with the service activators, a response can be written to the state and displayed as a validation message.

Use the serviceActivatorErrorHandlingExcludeStatusCodes configuration in the AppConfiguration PfeConfig to define http status codes that should not be treated as an error that redirects to the error page.

2. URL Parameters

The PFE supports multiple different URL parameters.

These can be used to switch the tenant/applicationId, to supply a state ID or to transfer parameters into the state.

It is also possible to add a configuration, that copies custom url parameters into the state during startup

The configuration is located in the pfeConfig within the application config (usually application.json or pfe.json).

For example:

"pfeConfig": {
  "urlParametersInState": [
    {
      "key": "myCustomURLParameter",
      "stateKeyExpression": "$.myCustomURLParameterInTheState"
    },
    {
      "key": "anotherParameter",
      "stateKeyExpression": "$.savedInTheState"
    }
  ]
},

3. Enable Logs

Since version v11.0.9 PFE changes the console.log for the @allianz/ngx-logger It is possible to supply a custom logging config.

results matching ""

    No results matching ""