deleteTextRandom Transaction Format

About deleteTextRandom Transaction Format

deleteTextRandom deletes the specified note from an object or class.

Syntax

deleteTextRandom {
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
}
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
}]
...
}
}

Notes

You can use deleteRandom in place of deleteTextRandom to delete text objects. Therefore, you should consider deleteTextRandom obsolete, it might not be supported in future releases.

Explanation

deleteTextRandom {
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 deleteTextRandom, you can omit the class name, since it must be the Information Text class. These two fields are part of the primary key: Name and Type. The user who created the note determines the name and sets the type. Your organization determines the list of possible types.

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

Use the first objectPtr statement to identify the object associated with the note. For class-name, supply the class in which the associated object is located. Use the fields that follow to supply 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
}]
...
}
}

Use one or more additional objectPtr statements if the primary keys for the associated object include pointers.

Example

This example deletes the note having the given type and name. You must also specify the note associated with the object. In this example, the objectPtr statement specifies the class and the primary key of the user associated with the note.

deleteTextRandom {
textTypeName = "N";
textName = "Education";
objectPtr {
class = s_usr_class;
}
}