UniDac and FireDac within the same project

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

UniDac and FireDac within the same project

Post by sandy771 » Mon 03 Mar 2014 16:00

I have a project that uses UniDac extensively, however I need access to the ServerMode feature of DevExpress and this requires FireDac (I can't use the work around on the DevExpress site as I don't have the delphi personailty installed - I am using Builder XE5 pro).

When I have both FireDac and UniDac componnets on the same form and connected to the same database (sqlite) I get a database is locked error.

I don't want to move to FireDac (I can imagine other issues with other components I use within the project) so need ideally to connect a DevExpress grid to UniDac in ServeMode.

Has anyone done this in C++ builder?

Is/does Devart speak to DevExpress to arrange integration - I can see advanrtages for both companies (and customers) if these components worked seemlessly together

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UniDac and FireDac within the same project

Post by AlexP » Tue 04 Mar 2014 10:05

Hello,

ServeMode for FireDAC (and for standard components) is implemented with the help of the TdxServerModeXXXDataSource devExpress components. You can contact devExpress developers to add ServMode components for UniDAC.

Since FireDAC uses the EXCLUSIVE mode for work with SQLite by default. To work simultaneously with the same SQLite database in UniDAC and FireDAC, you should change the mode in the FireDAC connection settings

sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

Re: UniDac and FireDac within the same project

Post by sandy771 » Tue 04 Mar 2014 10:08

Thanks Alex - very helpful

I did contact DevExpress and unfortunately they said that they will "never support UniDac in server mode out of the box"!!!! Their web site seems to be down at the moment so I cant check their exact wording.

Seems extremely short sighted on their part.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UniDac and FireDac within the same project

Post by AlexP » Thu 06 Mar 2014 08:11

In one of the next versions we will ad a functionality similar to server mode in devExpress.

sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

Re: UniDac and FireDac within the same project

Post by sandy771 » Thu 06 Mar 2014 08:26

Thanks Alex - I have implemnedted my own server mode whcih is working very well - but I expect you will do a better job :)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UniDac and FireDac within the same project

Post by AlexP » Wed 07 May 2014 13:31

We have added the SmartFetch mode, that allows to speed up navigation through a large number of records. The version with this feature is already available at our website.

Post Reply