updateTextRandom Transaction Format

About updateTextRandom Transaction Format

updateTextRandom updates the specified note.

Syntax

updateTextRandom {
key {
textName = "str" fd
textTypeName = "str" fd
}
objectPtr {
class = class-name fd
(field1 | field1@unit) = "str1" fd
(field2 | field2@unit) = "str2" fd
...
(fieldN | fieldN@unit) = "strN" fd
[objectPtr pointer-name {
class = class-name fd
(field1 | field1@unit) = "str1" fd
(field2 | field2@unit) = "str2" fd
...
(fieldN | fieldN@unit) = "strN" fd
}]
...
}
[permGrantGroups {
(add | remove) = "group-name" | all fd
...
}]
...
[permGrantUsers {
(add | remove) = "user-name)" fd
...
}]
...
S_TXD_NAME = "str" fd
S_TXD_TEXT = "str" fd
S_TXD_LANGUAGE_CODE = "str" fd
objectPtr S_TXD_ITY_ID {
class = S_ITY_CLASS fd
S_ITY_NAME = "str" fd
}
}

Explanation

updateTextRandom {
key {
S_TXD_NAME = "str" fd
S_TXD_TEXT = "str" fd
S_TXD_LANGUAGE_CODE = "str"
fd
objectPtr S_TXD_ITY_ID {
class = S_ITY_CLASS fd
S_ITY_NAME = "str" fd
}
}

For the key statement, supply the primary keys for the note you are updating.

objectPtr {
class = class-name fd
(field1 | field1@unit) = "str1" fd
(field2 | field2@unit) = "str2" fd
...
(fieldN | fieldN@unit) = "strN" fd

You can use the objectPtr statement to specify the primary keys for the associated object.

[objectPtr pointer-name {
class = class-name fd
(field1 | field1@unit) = "str1" fd
(field2 | field2@unit) = "str2" fd
...
(fieldN | fieldN@unit) = "strN" fd
}]
...
}

If the associated object has primary keys that are pointers, use one or more additional objectPtr statements to specify these primary keys. For class name, provide the class name pointing to the object.

[permGrantGroups {
(add | remove) = "group-name" | all fd
...
}]

Use the permGrantGroups statement to change the permissions on the note you are updating.

[permGrantUsers {
(add | remove) = "user-name)" fd
...
}]
...

Use the permGrantUsers statement to change the permissions on the note you are updating.

S_TXD_NAME = "str" fd
S_TXD_TEXT = "str" fd
S_TXD_LANGUAGE_CODE = "str"
fd
objectPtr S_TXD_ITY_ID {
class = S_ITY_CLASS fd
S_ITY_NAME = "str" fd
}

Use the remaining fields to supply or change values for the selected note.

Example

This example updates a note associated with an existing object. The key statement supplies the primary keys for the note, namely as, textTypeName and extName. The objectPtr statement specifies the object that the note is associated with. You must specify the object associated with the note.

updateTextRandom {
key {
S_TXD_NAME = "test";
S_TXD_LANGUAGE_CODE = "US";
objectPtr S_TXD_ITY_ID {
class = S_ITY_CLASS;
S_ITY_NAME = "Alert";
}
}
objectPtr {
class = s_usr_class;
s_usr_name = "John";
}
S_TXD_TEXT = "This is testing.";
}