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 Application Server
  • AVEVA Application Server Tech Notes

TN AppSvr168 Change the size of an Application Server array at runtime

Last updated: May 12th, 2025

Description

  • Author: Michael Viteri
  • Published: May 12th, 2025

Details:

Description

This article from InSource shows how to Change the size of an Application Server array at runtime.

  • Author: Mike Viteri
  • Published: 11/13/2015
  • Applies to: Application Server 3.0 & Later

Details

In this example we have a user defined object called "myarray" with a UDA array called "array". "Array" is set as a string with four elements. 

Next we will create a UDA called "arraysize". This is an integer that is user writeable and will allow us to change the array element size at runtime. 

Now we will create a datachange script called "ArrayResize". This datachange script will look at arraysize. Once the integer value for arraysize is changed it will change the element size of the array. This will be done by using the Dimension1 property of the array. This property is not user writeable so a script is needed to modify the value.

We can see the UDAs in the object viewer below. We have a 4 element array size with colors and our array size is equal to four. The "array" and "arraysize" should match during configuration.

Now we can change integer value on "arraysize" and we can see that two extra elements are attached to "array". They are both called default.

 

modify array dynamic sizing
Give feedback about this article

Recommended articles

TN - 1240 Creating a Watchlist Using an Import File

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