Using the embedded mode example parent application - SmartPlant Foundation - IM Update 42 - Help - Hexagon

SmartPlant Foundation Extensibility

Language
English
Product
SmartPlant Foundation
Search by Category
Help

The example parent application can be used to embed the Web Client and is located in the Embedded mode samples folder available from Smart Community. For more information, see Find sample data on Smart Community.

For the purposes of this example, the Web Client URL is https://wc.domain.com/spf. To configure the example parent application:

  1. Log on to the Web Client

  2. Open the main.js file in an editor, and edit the clientDomain variable to https://wc.domain.com/.

  3. Open the index.html file with an editor, and edit the iframe src value to https://my.domain.com/spf.

  4. Open IIS, and set up a new application that points to the embedded samples folder. For example, https://parent.domain2.com/.

  5. Open the application server Web.config file, and under the appsettings node add the following:

    <add key="FrameOptionsWhiteList" value=https://parent.domain2.com/>

  6. Run the embedded Web Client by navigating to https://parent.domain2.com/.

    • If your browser tries to block the authentication pop-up, add the web address to the allowed list and refresh.

    • If you get any errors, you can view the error console for any details.

    • If the Web.config file is changed, you must restart the Web Client server for the changes to take effect.