Query by form
Author: gianni.sandigliano@unifacesolutions.com (gianni)
Hi Unifacers, query by form is currently described on CHM helpfile as: An action in which a retrieve profile is entered by the user in one or more fields of the outermost entity of a form, which allows the retrieval of one or more occurrences matching the specified profile. Wildcards (profile characters) are allowed. Uniface joins the fields containing retrieve profiles by an AND or OR operator, depending on the profiles. To support a request from a customer I've tried to type into a form: field1 = "<GOLD>*ASTRING<GOLD>*" field2 = "<GOLD>|<GOLD>*ANOTHERSTRING<GOLD>*" but URuntime insist to generate SQL as: ((FIELD1 Like '*ASTRING*') And (FIELD2 Like '*ANOTHERSTRING*')) I was hoping the <GOLD>| at beginning of field2 should enable a joining OR instead of the usual joining AND but it was NOT... Is the only solution to have OR clauses somehow managed to build a dedicated parser to manage u_condition? Thanks for any input Gianni