ObjPropertySet

You can use this function for Optiva Workflow, Copy Methods, and Equations.

Purpose

Sets the value of a field in the database. The syntax is similar to ObjProperty. ObjPropertySet includes an argument for the new value and a save mode.

Syntax


Dim variable As Long = ObjPropertySet(Value,SaveMode,PropertyName,Symbol, 
Object[,RowKey,ColumnKey])

Arguments

Part Description
Value New value for the field.
SaveMode Specify 0 as a placeholder. SaveMode is reserved for future use and not currently supported. Changes are saved to the database at the end of the script.
PropertyName

See ObjProperty.

Symbol Type of object. Use empty quotation marks to indicate the symbol of the current object for the workflow, or the new object for the copy method.
Object Object for which to obtain a property. Use empty quotation marks to indicate the current object for the workflow, or the new object for the copy method. For formulas and specifications, you must include a backslash (\) followed by a version number if you include the object code.
RowKey VALIDATION_SUBCODE. Key for the row where the value exists.

Include only if VALIDATION_SUBCODE has a value.

ColumnKey Value must be inside quotation marks ("").

In some sections of rows, the FIELD_NAMES are not unique and the VALIDATION_SUBCODE has a value. In this case, look for the row where:

FIELD_NAME = KEYCODE for formulas

FIELD_NAME = PARAMCODE for specifications

In that row, take the FIELD_NO value for KEYCODE or PARAMCODE(e.g., 200 or 300) and divide it by 100. Use this number for the ColumnKey argument (e.g., 2 or 1). You can also use the FIELD_NAME (KEYCODE or PARAMCODE) as the argument.

Description

Use the ObjPropertySet function to set values of fields in the database. The arguments of this function are the same as for the ObjProperty function. The SaveMode argument is reserved for future use.

When you include Auto Code segments that prompt users to specify a value for the Copy Method, use GetSegData(n). The n represents the Auto Code segment number to use.

Note: You can use a workflow to override security and change a locked or read-only formula. Use discretion when overriding security.