We are moving to our new home. Several online services will be unavailable from
Saturday, December 16th to Sunday, December 17th.   |   More information

Inductive Automation
News Room

News / October 07, 2009

Did you know? FactoryPMI Can Be Used as an Integrated Dashboard

FactoryPMI allows the creation of any number of projects, which can run as applications or applets. Combining applets with the auto-login feature allows you to embed FactoryPMI projects in existing web pages (for example, on your intranet). In this way you can create robust, useful dashboards for nearly any purpose. Here's how you do it.

*for this example, our FactoryPMI Gateway is located at http://localhost:8080

  1. Create your dashboard as a FactoryPMI Project (for this example, we'll name the FactoryPMI Project "Dashboard")

  2. In the FactoryPMI Gateway, go to Configuration > Projects > Manage
    This is where you can edit your project to use an auto-login username and password. Click Update Project after editing.

  3. Open your browser and, in the address bar, type the following:
    http://localhost:8080/gateway/applet/Dashboard

  4. Go to View > Page Source. Within the source code, you should see something that looks like this:

    document.write("<APPLET width='800' height='600' align='baseline' code='com.inductiveautomation.factorypmi.application.runtime.RuntimeApplet.class' codebase='/gateway/lib/' archive='FPMIRuntime.jar,chart-min.jar,plugins/ACTX.activex_rt.jar,plugins/ACTX.activex_rt_native.jar,plugins/ACTX.comfyj_rt.jar,plugins/ACTX.jniwrap_rt.jar,plugins/ACTX.winpack_rt.jar,plugins/REPT.reporting_rt.jar' fpmi.touchscreen='false' fpmi.login.loginbtn='TG9naW4=' fpmi.autologin.username='' fpmi.login.password='UGFzc3dvcmQ6' fpmi.welcome='PEhUTUw+CjxQPldlbGNvbWU8L1A+ClBsZWFzZSBsb2cgaW46PC9IVE1MPg==' fpmi.login.imgpath='' fpmi.ssl='false' fpmi.login.username='VXNlcm5hbWU6' fpmi.project.name='Dashboard' fpmi.gateway='localhost:8080' fpmi.autologin.password='' fpmi.launch.ts='1254787077931'> No Java Platform 5.0 support for applets!!</APPLET>")

  5. Copy everything within the parenthesis, excluding the double quotation marks

  6. Paste this code into the HTML for your web page (wherever you'd like the applet to show up)

  7. Within the code above, find the following:
    codebase='/gateway/lib/'

  8. You'll need to add the location of your FactoryPMI gateway. In our example, this code will be changed to the following:
    codebase=' http://localhost:8080/gateway/lib/'

  9. The code that you have pasted into your HTML should look something like this:

    <APPLET width='800' height='600' align='baseline' code='com.inductiveautomation.factorypmi.application.runtime.RuntimeApplet.class' codebase=' http://localhost:8080/gateway/lib/'archive='FPMIRuntime.jar,chart-min.jar,plugins/ACTX.activex_rt.jar,plugins/ACTX.activex_rt_native.jar,plugins/ACTX.comfyj_rt.jar,plugins/ACTX.jniwrap_rt.jar,plugins/ACTX.winpack_rt.jar,plugins/REPT.reporting_rt.jar' fpmi.touchscreen='false' fpmi.login.loginbtn='TG9naW4=' fpmi.autologin.username='' fpmi.login.password='UGFzc3dvcmQ6' fpmi.welcome='PEhUTUw+CjxQPldlbGNvbWU8L1A+ClBsZWFzZSBsb2cgaW46PC9IVE1MPg==' fpmi.login.imgpath='' fpmi.ssl='false' fpmi.login.username='VXNlcm5hbWU6' fpmi.project.name='Dashboard' fpmi.gateway='localhost:8080' fpmi.autologin.password='' fpmi.launch.ts='1254787077931'> No Java Platform 5.0 support for applets!!</APPLET>