Question
Good afternoon, I'm trying to figure out the data. I'm collecting all the data from the row section using selectRowList, and it works. Is it possible to also attach it to collect data from the fields in the header and footer?
Answer
It is necessary to create a row with the keys header, rows, and footer and execute 3 queries:
=: rowCreate(field: "header" = $header; field: "rows" = $rows; field: "footer" = $footer)
header: selectRow(table: $#ntn; fields: "*HEADER*")
rows: selectRowList(table: $#ntn; fields: "*ALL*")
footer: selectRow(table: $#ntn; fields: "*FOOTER*")
You can also pass a string value from the list in the form of fields: "ALL" when all are needed, so you don't have to specify all fields separately: