You can use the changeDynamicProperty method of the Property class to change the name, type, and length of a runtime dynamic property. The method has the following signature.
changeDynamicProperty(propertyName: String; propertyType: Type; length: Integer; scaleFactor: Byte) updating;
You can change any or all of the propertyName, propertyType, length, and scaleFactor parameter values. The length parameter is required for
The type of a primitive property cannot be changed to a reference, and the reverse.
No reorganization is required when you change the type of a runtime dynamic property. If the actual value of a runtime dynamic property differs from the type of the property definition, the value is converted when the value is retrieved. Dynamic property values are always stored using the type of the property definition when the value is updated.
If you reduce the length of a
You cannot change a runtime dynamic property if the class in which it is defined is being used by another process or there is an instance of this class or any subclass.
You cannot reduce the length of a non‑embedded slob, slobutf8, or blob dynamic property to less than 540 characters or bytes. The maximum length of an embedded Binary type is 540 characters, an embedded StringUtf8 type is 540 characters, and an embedded String type is 539 characters.
You can use the changeExclusiveDynamicProperty method of the Property class to change the name of an exclusive runtime dynamic property; for example, an exclusive collection reference. The method has the following signature.
changeExclusiveDynamicProperty(propertyName: String) updating;
You cannot change runtime dynamic properties through the Class Browser.