Page 1 of 1

Persistent Fiels

Posted: Fri 01 Apr 2016 14:32
by azago
i have created a Query
----------------------
SELECT
CodAgente
, NomeAgente
, (Select Count(CodAgente) From Clienti Where CodAgente = Agenti.CodAgente
AND Modify = 1) As AggClienti
, EMail
From Agenti
--------------------

The Query Working correctly.

When i you want create Persistent Field in Query for adjusting the video layout,
the field AggClienti want return type TMemoField and not TIntegerField

i use
--------
Delphi 2010 Enterprise
Litedac 2.6.21

Angelo Zago

Re: Persistent Fiels

Posted: Mon 04 Apr 2016 03:55
by AlexP
Hello,

If you are using concatenation, aggregating functions (MAX, AVG, ...), nested queries, etc., SQLite returns the Unknown type for such fields. For correct create fields and data display, you should use DataTypeMapping http://www.devart.com/litedac/docs/data ... apping.htm .