Hello.
I am interested in this question.
I want to make a pop-up form that would not have "No data actions", but at the same time have its own button with the function to add data, close the form and display the value in the parent form field.
If I use the "data actions" buttons, then when adding a new value in the pop-up window, the added record appears in the parent field (from which the form was called), but the form does not close automatically.
If I do this through a button on the form, a form function and a global variable "temp value" (while removing "data actions" in the form properties), then the value in the parent form field is also added, but closing the child form stops working.
The function used is:
app.record_save()
app.set_variable({app_addresses.temp_value}, app_addresses.temp_value)
app.form_close()
It seems that when using
app.set_variable({app_addresses.temp_value}, app_addresses.temp_value)
The app.form_close()
command stops working.
At the same time, if you remove app.set_variable({app_addresses.temp_value}, app_addresses.temp_value)
, data stops being added to the parent window, but the pop-up form starts to close.
What command should I use to close the pop-up form with this code (or how)?