connection is not defined

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
moosurin888
Posts: 2
Joined: Fri 29 Oct 2021 00:59

connection is not defined

Post by moosurin888 » Fri 29 Oct 2021 01:58

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

evgeniym
Devart Team
Posts: 103
Joined: Thu 13 May 2021 07:08

Re: connection is not defined

Post by evgeniym » Mon 01 Nov 2021 05:44

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!

moosurin888
Posts: 2
Joined: Fri 29 Oct 2021 00:59

Re: connection is not defined

Post by moosurin888 » Mon 01 Nov 2021 08:44

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

evgeniym
Devart Team
Posts: 103
Joined: Thu 13 May 2021 07:08

Re: connection is not defined

Post by evgeniym » Tue 02 Nov 2021 15:20

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

Post Reply