Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Examples of using the attribute parameter in the SignedWrite() function

Examples of using the attribute parameter in the SignedWrite() function

  • Last UpdatedAug 09, 2024
  • 2 minute read

Working from the overall syntax of the SignedWrite() function, the script examples in the following table illustrate a number of approaches to using the Attribute parameter in the SignedWrite() function.

The following String, Boolean, and Integer user defined attribute conditions apply to the script examples:

  • User Defined object UD1_001

  • String attribute UD1_001.udString1 with the value "WW". Security classification is set to Secured Write.

  • Boolean attribute UD1_001.secBool1 with the value false. Security classification is set to Secured Write.

  • Integer attribute UD1_001.secInt1 with the value 24. Security classification is set to Secured Write.

  • User Defined object UD2_002

String attribute UD2_002.udString2 with a value "UD1_001.udString1" The following custom property conditions apply to the script examples:

  • String custom property CP1 with a reference to UD1_001.udString1

  • String custom property CP2 with a value "UD1_001.udString1"

  • String custom property CP3 with a value "UD1_001"

  • Boolean custom property CP4 with a reference to UD1_001.secBool1

  • Integer custom property CP5 with a reference to UD1_001.secInt1

  • String custom property CP6 with a reference to an attribute on Owning Object UD1_001 as me.udString1

Script example

Function and result

SignedWrite("CP1", "AVEVA", "using redirect", true, 0, null);

Uses the CP1 reference UD1_001.udString1 and pokes to it the value "AVEVA".

Result: The value in UD1_001.udString1 will change from "WW" to "AVEVA".

SignedWrite(CP2, "AVEVA", "using string value", true, 0, null);

Resolves CP2 string value "UD1_001.udString1" to a reference  and pokes to it the value "AVEVA".

Result: The value in UD1_001.udString1 will change from "WW" to "AVEVA".

SignedWrite(CP3+".udString1", "AVEVA", "using string expression", true, 0, null);

Resolves the string "UD1_001.udString1" to a reference and pokes to it the value "AVEVA".

Result: The value in UD1_001.udString1 will change from "WW" to "AVEVA".

SignedWrite("UD1_001.udString1", "AVEVA", "using constant string", true, 0, null);

Resolves the string "UD1_001.udString1"  to a reference and pokes to it the value "AVEVA".

Result: The value in UD1_001.udString1 will change from "WW" to "AVEVA".

SignedWrite(UD2_002.udString2, "AVEVA", "using attribute containing string", true, 0, null);

Resolves the UD2_002.udString2 string value "UD1_001.udString1" to a reference and pokes to it the value "AVEVA".

Result: The value in UD1_001.udString1 will change from "WW" to "AVEVA".

SignedWrite("CP" + "1", "AVEVA", "using redirect from string expression", true, 0, null);

Resolves the expression to "CP1" to use the CP1 reference UD1_001.udString1 and pokes to it the value "AVEVA".

Result: The value in UD1_001.udString1 will change from "WW" to "AVEVA".

SignedWrite("CP4", true, "using redirect", true, 0, null);

Uses the CP4 reference UD1_001.secBool1 and pokes to it the value true. 

Result: The value in UD1_001.secBool1 will change from false to true

SignedWrite("CP5", 37, "using redirect", true, 0, null);

Uses the CP5 reference UD1_001.secInt1 and pokes to it the value 37. 

Result: The value in UD1_001.secInt1 will change from 24 to 37

SignedWrite("CP6", "AVEVA", "using redirect using relative reference", true, 0, null);

Uses the CP6 reference me.udString1 and resolves it to UD1_001.udString1 and pokes to it the value "AVEVA".

Result: That the value in UD1_001.udString1 will change from "WW" to "AVEVA"

TitleResults for “How to create a CRG?”Also Available in