Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.
Akcia READPICTNOTES

READPICTNOTES


Function

The action reads the notes according to the specified criteria.

Declaration
Funkcia
Akcia prečíta poznámky podľa zadaných kritérií.
Deklarácia


Blok kódu
languageesl
themeConfluence
 READPICTNOTES _bt, _et, _pictName, _pictDesc, _userName, _notes


ParametreParameters


_bt, _etin
Identifikátory typu AbsTime - definujú časový interval pre výber poznámok
Identifiers of the AbsTime type - defines a time interval for records selection.
_pictNamein
Identifikátor typu String -  reprezentuje masku (podmienku) pre načítanie poznámok. Načíta len poznámky pridelené k schémam ktorých meno vyhovuje maske zadanej parametrom _pictName.
Ak je hodnota prázdny reťazec, táto podmienka sa ignoruje

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.
If the input value is invalid, this condition is ignored.

_pictDescin
Identifikátor typu String -  reprezentuje masku (podmienku) pre načítanie poznámok. Načíta len poznámky pridelené k schémam ktorých popis vyhovuje maske zadanej parametrom _pictDesc.
Ak je hodnota prázdny reťazec, táto podmienka sa ignoruje

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.
If the input value is invalid, this condition is ignored.

_userNamein
Identifikátor typu String -  reprezentuje masku (podmienku) pre načítanie poznámok. Načíta len poznámky vytvorené užívateľmi ktorých mená vyhovujú maske zadanej parametrom _userName.
Ak je hodnota prázdny reťazec, táto podmienka sa ignoruje

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.
If the input value is invalid, this condition is ignored.

_notesout
Identifikátor celej lokálnej štruktúry - štruktúra však musí obsahovať práve 10 stĺpcov.Typy a význam jednotlivých stĺpcov

Identifier of the whole local structure - however, the structure must contain exactly 10 columns.


Types and meaning of individual columns:

noteUUID  String
picture_nameString
validBoolean
btAbsTime
etAbsTime
textString
create_authorText
create_timeAbsTime
last_modified_authorText
last_modified_timeAbsTime



Príklad


Blok kódu
languageesl
themeRDark
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 ReadNotes



Info
titleSúvisiace stránkyRelated pages:

Akcie v skriptochActions in scripts kriptoch