READPICTNOTES
READPICTNOTES
Function
The action reads the notes according to the specified criteria.
Declaration
READPICTNOTES _bt, _et, _pictName, _pictDesc, _userName, _notesParameters
_bt, _et | in | Identifiers of the AbsTime type - defines a time interval for records selection. | ||||||||||||||||||||
_pictName | in | Identifier of the String type - represents the condition for records loading. It loads only records with the attribute "Name" which match the mask which is entered in the parameter name. | ||||||||||||||||||||
_pictDesc | in | Identifier of the String type - represents the condition for records loading. It loads only comments assigned to schemas whose description matches the mask specified by the _pictDesc parameter. | ||||||||||||||||||||
_userName | in | Identifier of the String type - represents a mask (condition) for loading notes. Loads only comments created by users whose names match the mask specified by the _userName parameter. | ||||||||||||||||||||
_notes | out | Identifier of the whole local structure - however, the structure must contain exactly 10 columns. Types and meaning of individual columns:
|
Príklad
PROCEDURE ReadNotes
TEXT _userName
TEXT _pictName
TEXT _pictDesc
TIME _bt, _et
RECORD NOALIAS (SD.PICTNOTE) _notes
_userName := ""
_pictName := ""
_pictDesc := ""
_bt := SysTime
_bt := %TimeFromItems(%Year(_bt), %Month(_bt), %Day(_bt), 0, 0, 0, 0)
_et := %TimeFromItems(%Year(_bt), %Month(_bt), %Day(_bt)+1, 0, 0, 0, 0)
READPICTNOTES _bt, _et, _pictName, _pictDesc, _userName, _notes
END ReadNotesRelated pages: