What linkToTable settings allow you to disable the header and footer?
If the table being opened has a header or footer and you don't need them when opening in an iframe
, then:
header: false
— disables the display of the header.
footer: false
— disables the display of the footer.
If the parameters are not specified, they are true
— display if present.
If I remove these parameters from the function, what will their values be equal to?
If the parameters are not specified, it means they are true
— show if available.
Why is refresh: true and refresh: "recalculate" used?
There are cases when you need to update the table from which you opened a window via linkToTable
.
For example: this is Warehouse
and you open Movement by position
. When the user adds a movement, we update the balance in the Warehouse
table.
Therefore, when the user closes the movement window, we need to automatically update the information in their browser for the Warehouse
table.
This is handled by the refresh: true
parameter.
=: linkToTable(table: 'movements'; title: "Movement by position"; filter: 'fl_unit' = #id; target: "iframe"; refresh: true)
In this case, the update will occur only if the Warehouse
table was changed as a result of actions the user performed in movements
.
There is another option, where we forcefully update the table from which it was opened — refresh: "recalculate"
.
=: linkToTable(table: 'movements'; title: "Movement by position"; filter: 'fl_unit' = #id; target: "iframe"; refresh: "recalculate")
This option increases the load but is sometimes used in combination with temporary tables — just remember this for now.
Why do I need the button Close Window After Execution parameter?
The Button field has a parameter to close after execution.
It is needed to automatically close the window after the action described in the button is performed.
We enable it when there is a button, after pressing which the user will no longer need this window.