Embedding BMC Helix Platform views in external applications
You can now embed BMC Helix Platform views in external applications that are not running on BMC Helix Platform, for example, BMC Helix Digital Workplace Advanced is considered an external application for BMC Helix Platform. You can embed multiple BMC Helix Platform views in both cloud and on-premises applications of BMC Helix Digital Workplace Advanced.
Embedding an BMC Helix Platform view in an external application provides the following benefits:
- Leverages BMC Helix Platform's capabilities in any application that is not running on BMC Helix Platform.
- Provides seamless navigation to BMC Helix Platform.
If both the external application and BMC Helix Platform use Remedy Single Sign-On (Remedy SSO), users can access the BMC Helix Platform view without providing the login credentials again.
To embed an BMC Helix Platform view in an external application, an HTML Inline Frame element (iFrame) which contains the view is added to a page in the external application. If the embedded view creates or modifies any record instances, they are created or modified in BMC Helix Platform. If the embedded view is modified in any way in BMC Helix Platform, the changes are visible after the page is refreshed in the external application.
The following image is an example of an BMC Helix Platform view that is launched from the admin console of BMC Helix Digital Workplace Advanced:
Workflow to embed BMC Helix Platform views in external applications
The following table described the actions that a developer and an administrator performs to embed BMC Helix Platform view in external applications:
Task | Role | Product | Action | Reference |
---|---|---|---|---|
1 | Developer or Application business analyst | BMC Helix Innovation Studio | Create a view in a codeless application or use an existing view, and customize the view according to your business requirements. | |
2 | Administrator | BMC Helix Innovation Studio | Add trusted URL of an external application, so that the BMC Helix Platform view can be loaded in the iFrame of an external application. | |
3 | Administrator | External application |
|
Before you begin
Configure Remedy SSO OAuth 2.0 authentication for both BMC Helix Platform and your external application, so that the external application's users are automatically authenticated and do not need to log in separately to access the embedded View.
For configuration information, see Using-authorization-REST-APIs-to-consume-BMC-Remedy-Single-Sign-On.
To prepare a view for external applications
In a codeless application, create a view or use an existing view and customize it to suit your business needs. The view can then be embedded in an external application.
- Log in to BMC Helix Innovation Studio.
For a codeless application, create a view or use an existing view.
The view can contain both out-of-the-box view components and custom view components.
For more information about developing codeless applications, see Developing-codeless-applications.For more information about creating and customizing views, see Defining-the-user-interface-through-view-definitions.
- Format the view such that it is consistent with the external application's style.
For more information about customizing the skin and logo of the view, see Tailoring-the-application-skin-and-brand.
To enable a BMC Helix Platform view to load in iFrame of external application
Specify the trusted URL of an external application, so that the BMC Helix Platform view can be loaded in the iFrame of an external application. You can add multiple external application URLs to permit multiple applications to contain the embedded views.
- Log in to BMC Helix Innovation Studio and navigate to the Administration tab.
- Select Configure My Server > Helix Platform > Iframe Security.
From the Iframe Security page, from the Trusted web applications allowed to display BMC Helix Platform views section, click Add URL, and enter the address of the external application where you want to embed the BMC Helix Platform view.
The following are a few examples of acceptable URLs for external applications:http://host.com, view.host.com:443, https://view.host.com, or http://182.167.1.1 .
The following image shows a completed Iframe Security page:
- Click Save.
The BMC Helix Platform view can now be embedded in the external application. If you modify the embedded view in BMC Helix Platform, the changes are available after you refresh the external application's console. Any record instances that get created by using the BMC Helix Platform view from the external application are saved in BMC Helix Platform.
To configure the external application to embed the BMC Helix Platform view
External applications use inline frame (iFrame) HTML element to launch the embedded BMC Helix Platform view, because out-of-the-box BMC Helix Innovation Studio view components cannot be launched from cross-origin requests. By using the iFrame HTML element, BMC Helix Platform communicates with the external application and provides access to the embedded view.
The external application's administrator must perform the following actions:
- Update the hosts file with tenant Virtual Host Name and map it to IP address of Innovation Studio and IP address of target RSSO, if required.
Build the URL for accessing the BMC Helix Platform view by using JavaScript.
The JavaScript points to BMC Helix Platform and the contains the BMC Helix Platform view properties.
- On the page in the external application to which you want to embed the view, add script tags <script></script> within the body of the page.
- Add the following JavaScript code within the open and close script tags:
<iFrame src=<rsso-cross-launch-url> width="200" height="200">
</iFrame> - Replace the string <rsso-cross-launch-url> with the RSSO cross-launch URL you just constructed.
- Enable the BMC Helix Platform application feature.
- Place the BMC Helix Platform view on a custom page of the external application's console.
For information about how to configure the external application for embedding the BMC Helix Platform view, see Embedding custom pages from BMC Helix Platform.
To remove access to an embedded view
When you remove an external application's URL from the iFrame Security section of the Administration area in BMC Helix Innovation Studio, the embedded views are no longer visible in the external application.
- Log in to BMC Helix Innovation Studio and navigate to the Administration tab.
- Select Configure My Server > Helix Platform > iframe Security.
From the iframe Security page, click the Cancel icon
beside the external application's URL for which you want to remove the embedded view.
The embedded view is removed from the external application. Ensure that you also remove the custom page of external application that connects with the BMC Helix Platform view.
The embedded view is no longer visible in the external application. As a best practice, you must remove the JavaScript code from the external application's page that contains the iFrame code.