Handbook · Reference · Blockly · Files
Blockly: Files
Where in the UI. Scripts tab toolbox.
CSV, filenames, share, PDF document blocks, inventory report.
| Block id | Read as | Purpose |
|---|---|---|
containd_list_to_csv | list to csv | 1D list → single column; 2D list → rows. Optional headers list becomes the first CSV line. |
containd_table_to_csv | table to csv | CSV string for this table/fileTable property (pick property when item has multiple tables) |
containd_table_to_csv_on_item | table to csv on item | callHost(tableToCsv) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item |
containd_sanitize_filename | sanitize filename | safe single-segment filename (illegal chars → _, accents stripped, default max 80). Optional extension (e.g. csv) and max length. |
containd_save_string_to_file | save string to file | write UTF-8 text to a temp cache file and return its path. Share yes also needs share.invoke. Use with list/table to CSV for exports. |
containd_share_asset | share asset | open the OS share sheet for any local file path/URI (from save string/PDF, screenshot, etc.). Requires share.invoke. |
containd_save_pdf | save pdf | callHost(savePdf) |
containd_export_inventory_report | export inventory report | callHost(exportInventoryReport) |
containd_report_export_options | report export options | Partial ReportExportOptions for exportInventoryReport |
containd_pdf_document | pdf document | PdfDocumentDefinition for savePdf |
containd_pdf_pages_list | pdf pages list | List of PDF pages |
containd_pdf_page | pdf page | Single PDF page with content blocks |
containd_pdf_blocks_list | pdf blocks list | List of PDF content blocks |
containd_pdf_text | pdf text | PDF text block |
containd_pdf_qr | pdf qr | PDF QR code block |
containd_pdf_image | pdf image | PDF image block (tempPath only; assetId not resolved at runtime) |
containd_pdf_spacer | pdf spacer | PDF vertical spacer block |