I have a data block OBJECTS with four items:
- ID
- TYPE_ID (foreign key, named ID in the table TYPES)
- TYPE_DESCRIPTION (non-database item, named DESCRIPTION in the table TYPES)
- STA_ID (non-relevant)
In the form I want to be able to query on TYPE_DESCRIPTION (non-database item), by typing a phrase, like "S%" or "%P" and get a result for all the columns, filtered by TYPE_DESCRIPTION.
Screenshots: https://i.stack.imgur.com/quxR2.jpg
I found a solution to the problem. Here's the code for the PRE_QUERY trigger:
http://oracleebsgeeks.blogspot.com/2011/12/querying-on-non-database-field-in.html