⟵ hearthere ⟶
  • Training course
  • Creating simple tables and fields
  • Codes base level
  • Selects and links between tables
  • Table settings basic level
  • Prefilters base level
  • Conditional formatting basic level
  • Action codes base level
  • Using pop-up windows
  • How to open another table by clicking a button?
  • Hide the header or footer, update the source table when closing the window, close the window forcedly
  • Temporary table creation and features
  • How do I fill in the rows part by passing data to the header?
  • How can I use a temporary table for background calculation and get a result without showing it to the user?
  • How to open a text input window and how can it be modified?
  • Showing the panel with buttons
  • Cycles base level
  • Roles and users on the web
  • Codes advanced level
  • Action codes advanced level
  • Prefilters advanced level
  • Field and table settings advanced level
  • Cycles advanced level
  • Formatting advanced level
  • Select-Tree
  • Executing a scheduled action code
  • Printing and emailing
  • Notifications
  • API interaction
  • Adaptivity and Sections
  • Hide the header or footer, update the source table when closing the window, close the window forcedly

    link_to_table

    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.