Page 1 of 1

connection is not defined

Posted: Fri 29 Oct 2021 01:58
by moosurin888
i use delphi 11 and unidac 9.0.1
Image
i create android app and i put uniconnection and mysqlprovider in datamodule
in project -> option -> forms -> Auto-create forms -> i move datamodule to top on box
Image
when i create other form and use datamodule and put uniquery add sql query when i check active = true it error
"connection is not defined"
Image

i don't understand what happen is error because i make everything same in past

Re: connection is not defined

Posted: Mon 01 Nov 2021 05:44
by evgeniym
Hi!
Thank you for contacting Devart and for your inquiry!
Kindly note that this message means that you have not set the Connection property for UniQuery. Please check if the Connection property is set.
In addition to adding Data Module to Uses, you should explicitly specify TUniConnection with Data Module in the Connection property of UniQuery.
Please, let us know if there are any questions!

Re: connection is not defined

Posted: Mon 01 Nov 2021 08:44
by moosurin888
my uniquery properties
Image

my form use datamodule
Image

i think everything is ok when i open my old project i build on delphi seattle it ok but when i open from delphi 11 is error
i don't understand

Re: connection is not defined

Posted: Tue 02 Nov 2021 15:20
by evgeniym
Unfortunately, we were unable to reproduce the described behavior.
Please clarify do you have the same UniDAC versions for Delphi 10 and Delphi 11 installed?

Also, we would like to ask to provide us an example that uses UniDAC and demonstrates the wrong behavior.
To submit it you can use the form on our website: https://devart.com/company/contactform.html