AVEVA OMI Software Developer Kit
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.

  1. 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.
  2. Create an editor for your app and configure the UI.
  3. Add the GetCredentialsNames() API to your app editor.
  4. When the ViewApp builder opens your app editor to configure it, a customized list containing the configured credential names appears in the editor UI.
  5. The ViewApp builder selects the appropriate named credential from the list of credential names.
  6. After completing configuration in the app editor, the ViewApp builder adds the configured app to a layout pane.    
  7. 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