I have created a screen2 with a column list (of processes), where I use FILTER. It has been made thinking for reuse, in that if it is invoked by another screen, a variable or "parameter" is passed to it.
The source in the column list is:
= filter (SCI_Subprocess, "$ [v_sample_all] OR SCI_Subprocess [Subprocess] = $ [v_record_called]")
By default the variable $ [v_sample_all] (as a SHOW_ALL flag) is TRUE, and therefore it shows in the column list all the records of the SCI_Subprocess table. This happens when this screen is the first executed screen of the application.
But when this screen2 is invoked by another screen (screen1), this screen1 passes the mentioned variables to it with:
v_sample_all = FALSE and v_record_called equal to the subprocess. This works fine when the screen1 is passed as constant eg v_registro_invocado = 'Retenciones'. It works perfectly bringing only the searched record.
But in another case (this is where I have the problem), a screen0 that contains a column list and where one of the columns is a thread (when clicking on that column) invokes Screen2, but in this case it does not return any record.
Configuration Screen2 in column list:
Here how screen1 call to screen 2, with fixed value "Retenciones"
this happens: (works ok)
But from Screen0:
And doesn't work: