In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

lAutoOrder problem

Xailer professional forum in English
Responder
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

lAutoOrder problem

Mensaje por Maarten Roos »

[Solved it!]
Strangely enough does the lAutoOrder not working any more with ADS. When I switch back to TCdxDataSource it is working again, go back to TAdsDataSource it stops working?
Ow, it is still working for 2 tables, but for the rest not?
Someone any idea?
[edit]
If I zap the database, it works again.
If I try to re-index with ADA, I get the following message:
Encryption is not enabled.
Mhhh... probably something from my .add testing?
Problem solved.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

lAutoOrder problem

Mensaje por ignacio »

Maarten,

The lAutoOrder feature is done generating a temporary index file on the table, so is supposed to be used only with the table data fields. In case you need to order by any other field I suggest the following:
1) Retrieve the data using a SQL expression on ADS using the ORDER clause.
2) Use a TMemDataset data control
3) Move the data to un array and use a tArrayBrowse control
Options 2 and 3 should be used only if you are not retrieving thousands of records.
Best regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder