Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA OMI
  • AVEVA OMI Tech Notes

TN - 1197 Using a Namespace to Assign Pens to the HistoricalTrend App

Last updated: March 5th, 2025

Description

  • Author: Justin Benton
  • Published: March 5th, 2025

Details:

Description

This article from InSource shows assign pens to the HistoricalTrend App in runtime using an OMI namespace.

  • Author: Justin Benton
  • Published: 11/30/2021
  • Applies to: Intouch OMI 2020 and Above

Details

One strategy in order to assign pens to the HistoricalTrend App is to create a Namespace in order to write to it. The Namespace will then be called from the Pens property within the HistoricalTrend App. Here are a couple of examples.

Using a Button

  1. Create a Namespace and add a string attribute. We'll call it “Pentest1”
  2. Create a symbol and add a button. Add it to a pane in your layout. Configure the button.
    Your entire string should resolve on its own. In this example, "Time_001" is my UDO name and "Attribute001" is the attribute set to historize.
  3. In the properties of the HistoricalTrend App, search for "Pens" and add MyviewApp.namespace.pentest1. Set the tag type to “In”
  4. Deploy all necessary components and launch your viewapp. Pressing the button will add a pen to your app.

On Show

  1. Create a Namespace as shown in the previous example.
  2. Select the "Scripts" option in your layout, and create an OnShow script.
  3. In the properties of the HistoricalTrend App, search for "Pens" and add MyviewApp.namespace.pentest1. Set the tag type to "In"

This way scripts the layout to immediately write to the Namespace when the app is shown. You can add multiple attributes using a comma.

namespace app
Give feedback about this article

Recommended articles

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand