Kreo HMI
×
Menu
Index

Exporting files: system keys

 
All built-in functions that create a file (for example, data export functions in complex structures) can create dynamic file names using the following system keys:
 
$DATE
Current date of the runtime edge component (server) in DD-MM-YYY format
$TIME
current time of the edge component (server) in hh-mm-ss format
$OBJNAME
The name of the object to which the created file refers. For example, the name of a recipe structure or a datalog buffer.
$OBJCLASS
the name of the object's class. For example, Recipes, Datalog, Fda, etc.
 

Application example

Using the report export function and creating the PDF file with the different keywords, you obtain the files indicated in the table:
 
Report_$DATE_$TIME.pdf
Report_06-12-2024_11-44-58
Report_$OBJNAME.pdf
Report_ReportBatch.pdf
Report_$OBJCLASS.pdf
Report_Report.pdf