Registered Member
|
Hi,
I built a table 'films' with few columns one of which is 'title' of type text. Populated the table importing the data from a MS Access db, no problems encountered. I built a form named 'fQuery' with a text widget named 'tSearch' and a button 'bSearch' which action is to execute a query (or a form based on a query), I want to place the Criteria of the query using the fQuery.tSearch contents. I tryed [Forms]![fQuery]![tSearch] or Forms.fQuery.tSearch but they are not accepted. Is there a way to refer to the widget contents? I only succeded placing the Criteria: LIKE [Enter Title] getting a pop up window and entering the string I get the rows that match the Criteria. I run on ubuntu 14.04, kexi 2.8.1 I installed Qt4 from sources and it works. Trying the following qtscript: include("qt.core"); include("qt.gui"); QMessageBox.information(0,"Hello", "Hello World"); I get : Execution of the script "hqqt" started. Error: Unable to import qt.core: no such extension <anonymous>()@hqqt:1 Where should be qt.core and where I can find it? Best regards |
Moderator
|
Hi vincenzofazi,
"[Enter Title]" is the only solution. Queries cannot reference forms. Object model of scripts does not allow using Qt modules directly (and for simplicity+security reasons this is not planned). Scripts are experimental feature, but if they are finished, it would be possible to run custom queries (e.g. with specified filters). Thanks for this question. |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]