tion1976
5th October 2023, 11:35
Hi,
I have the requirement to add the filter controls on a field that i added to the form but it is not part of the main table.
I see there are no fields to filter. See the screenshot.
I want to do this either programmatically or by form editor or another way.
Thanks

JaapJD
5th October 2023, 12:26
You have to add the field to the query of the session by using the query.extend[.fld].* functions. Obviously this only applies if the retrieval of the field value can be expressed in a query.

srkndnsn
6th October 2023, 08:12
Hi,
I have the requirement to add the filter controls on a field that i added to the form but it is not part of the main table.
I see there are no fields to filter. See the screenshot.
I want to do this either programmatically or by form editor or another way.
Thanks

Hi,

If you do this with extension, you should use nested query type or you can add referenced table but you must nsure that the record
in the other table exists, otherwise the record of the main table is not displayed .

Best regards
Serkan

JaapJD
6th October 2023, 10:10
Serkan is right in case the main table is a standard LN table and the session is a standard session. But it seems to be a custom table. If "Nr. foaie parcurs" is just a field from a foreign table, it can be added to the query in the session script and filtering will be available.