Answer
How can I access data from a temporary table without showing it to the user? That is, by using a command to create a temporary table with certain parameters (data array), and then use this data to populate a field in the current table?
Response
This task is solved using the hide: true
parameter of the linkToDataTable
function. If this parameter is not present, linkToDataTable
opens a window, but if hide: true
is present, the window does not open, and the function returns the hash
of the created temporary table.
So it works like this:
Call the temporary with the hide: true
parameter
The called table performs the necessary calculation
After receiving the hash
of the hidden temporary, retrieve the data from it
All of this is packaged approximately like this:
=: selectList(table: 'tmp_table'; hash: $linkto; field: 'id')
linkto: linkToDataTable(table: 'tmp_table'; params: $row; hide: true)
row: "here some rowCreate"
Here's another link to the docs