Build a Custom UI
Design Time Option 3: Build a Custom UI to add Named Credentials
The AVEVA OMI SDK includes the GetCredentialNames() API. This API returns the names of the configured Named Credentials. You can customize the UI to display the Named Credentials with check boxes, as a grid, a dropdown, or other display type.
- Configure security in the ArchestrA IDE. Add authorized users and Named Credentials for the galaxy. See Configure Named Credentials and the section "Configure Security" in the Application Server User Guide.
- Create an editor for your app and configure the UI.
- Add the GetCredentialsNames() API to your app editor.
- When the ViewApp builder opens your app editor to configure it, a customized list containing the configured credential names appears in the editor UI.
- The ViewApp builder selects the appropriate named credential from the list of credential names.
- After completing configuration in the app editor, the ViewApp builder adds the configured app to a layout pane.
- When the ViewApp is deployed, the AVEVA OMI framework provides the name of the configured credential to the app. See Named Credentials at Run Time for information about the run-time workflow.
See Also