Quantcast
Channel: DA-SOFT Technologies - Forum
Viewing all 1040 articles
Browse latest View live

Subject: Use the AnyDac in DLL's - by: softran

$
0
0
Hello, I am also having this same problem when trying to load a DLL. Could you please share the solution? Thank you

Subject: Trouble connecting SQLite - by: MikeReublin

$
0
0
Instead of TADQuery with code adquery1.Connection := adconnection1; adquery1.SQL.Add('Select * from timea' ) ; adquery1.Active := True; I changed to TADQuery with code adquery1.Open('Select * from timea' ); I guess that after the sale, ANYDac is no longer supported.

Subject: no primary key value for foreign key value error in Master-Detail - by: jkgDelphi001

$
0
0
Hi, We are using master detail relationship dataset but getting primary key violation error during posting the data. ------------------------------- Project GBlWare.exe raised exception class EASANativeException with message [FireDAC][Phys][ODBC][Sybase][SQLAnywhere]no primary key value for foreign key ------------------------------- Our current master detail scenario is that ,we are using parameter in details dataset that reference to master dataset primary key field value. But when I add a new record at that time master dataset key value is null. So when I press tab or down arrow in detail dataset grid it automatically posts detail data in database. As at that time master dataset is not posted to database, so it causes the foreign key violence exception. In ADO we use Batchoptimistic property for detail dataset. So that user can add multiple detail data in details dataset. Then user can save batch of data to database at a time. Currently I am doing following setting 1. I have put a master query on form with sql Select * from Order 2. On Detail query on form with SQL Select * from OrderDetail where OrderID = :OrderID 3. I set Query detail master source as Tdatasource linked to Master query. 4. Then In detail query I set masterfild as Master dataset primary key. and indexfield name as detail query foreign key. So am I missing any step. So we want to implement same functionality. So please suggest the proper way to implement it

Subject: no primary key value for foreign key value error in Master-Detail - by: Support

$
0
0
http://docwiki.embarcadero.com/RADStudio/XE7/en/Caching_Updates_(FireDAC)#Centralized_Cached_Updates

Subject: MS SQL Stored procedure execution problem - by: Support

$
0
0
Could you please send to support at da-soft dot com: 1) environment report: http://docwiki.embarcadero.com/RADStudio/XE7/en/DBMS_Environment_Reports_(FireDAC) 2) database backup 3) simple test application, reproducing the issue

Subject: MS Sql server message issue - by: Support

$
0
0
The following code will work: [code] procedure TForm44.CheckMessages(AMsg: String); var i: Integer; begin Memo1.Lines.Add(AMsg); if FDConnection1.Messages nil then for i := 0 to FDConnection1.Messages.ErrorCount - 1 do Memo1.Lines.Add(FDConnection1.Messages .Message); end; procedure TForm44.Button1Click(Sender: TObject); begin FDQuery1.Disconnect; FDQuery1.FetchOptions.AutoClose := False; FDQuery1.FetchOptions.Mode := fmManual; FDQuery1.Open; CheckMessages('Open'); FDQuery1.FetchAll; CheckMessages('FetchAll'); while FDQuery1.Active do FDQuery1.NextRecordSet; CheckMessages('NextRecordSet'); end; [/code]

Subject: AV on shoutdown using Firebird Embedded - by: Support

$
0
0
With latest FireDAC / XE7 I cannot reproduce the issue. Seems to be something in the library was changed to avoid the issue.

Subject: MS SQL Query issue - by: ArturElefanti

$
0
0
Sorry it looks like some dbgrid issue not anydac.

Subject: Best Solution for copy located record in the same table on append/Insert - by: lorife

Subject: Как влияет FDQuery->FetchOptions->Unidirectional - by: sjenek

$
0
0
Да в коде была ошибка, при выполнении запроса из программы все происходит нормально, а вот из окна FDQuery ошибка выскакивает и нет ни одной записи. Не критично, но не удобно проверять запросы. Да стоит Embarcadero® C++Builder® XE5 Version 19.0.13476.4176

Subject: slow select - by: lorife

$
0
0
Hi Dmitry, when I open a simple query using firedac like: select * from table with tfdquery configured with all the default: - rowset size: 50 - mode: fmondemand - recordcountmode: cmvisible and : - the table is big (3.000.000 records) or - contains 250.000 record and about 70 columns it takes about 10-15 seconds to return me the resultset of 50 rows. am i doing something wrong or is it normal? Thanks, Lorenzo

Subject: AnyDac XE3 -> Firedac XE7 - by: zielony

$
0
0
I'm trying to port my application working with SQLite. I've changed all TADxx components to TFDxx. I had to change all [code]query.Params[x].LoadFromStream(stream, ftBlob)[/code] to [code]query.Params[x].SetStream(ms, ftBlob, False) [/code] cause I had av everywhere. It seems to be working now but I have a problem in one procedure. [code]q.SQL.Text := 'INSERT INTO tablename VALUES (:a, :b, :c)'; ms := TMemoryStream.Create; try ms.Clear; ms.LoadFromFile(filename); ms.Position := 0; q.Params[0].AsInteger := 3; q.Params[1].AsInteger := 4; q.Params[2].SetStream(ms, ftBlob, False); q.ExecSQL; finally ms.Free; end;[/code] What's wrong with this code? I've checked ms, I can save it again after loading, it's valid. I've tried setting blob with q.Params[2].AsStream and CreateBlobStream. This code above sometimes works and sometimes I have access violation on line where I set query param to blob. My app worked fine for years yet I have no idea why it doesn't now. I've spent 5 days googling and trying fixing it by myself. Please help.

Subject: OnRecover - by: sjenek

$
0
0
Cannot Programmatically Assign IDE- Generated Event Handlers that Have Interfaces as Parameters Delphi int erfaces are exposed as templates in C++. That is, Delphi interface IFo o becomes _di_IFoo in C++. But the IDE is instead generating IFoo* in event handlers. This causes two problems: The event handler generated by the IDE cannot be assigned to the event programmatically, because the compiler sees the mismatch in the event 's declaration and the handler declaration. The event handler does not get the prologue/ epilogue code generated by the C++ compiler for Delphi interfaces. NOTE: This issue affects newer runtimes like REST, FireDAC and even Live Bi ndings. All of these have events that have interface types as paramete rs. VCL, however, does not have events with interface parameters. For example, following is a standard closure event handler (the added comment indicates the point of difference with the generated handler): typedef void __fastcall (__closure *TFDConnectionRecoverEvent)(System: :TObject* ASender, const Firedac::Stan::Intf::_di_IFDStanObject AInitiator, //

Subject: MS SQL and FireDac! - by: sjenek

$
0
0
Дмитрий, вопрос закрыл! перед повторным соединением реинициализирую драйвер: FDPhysFBDriverLink->Release(); Все работает без сбоев...

Subject: Event when TADQuery state change - by: r038tmp5

$
0
0
Its OK, I have understand how change the TADQuery.State property.

Subject: How to prevent post when data is not conform - by: r038tmp5

$
0
0
Hello, I use an TADQuery with a grid. After edit the data into an in-place editor, if the field value is not correct (empty for example), I want to show my own message and stay in dsEdit state. Have you a solution to do that? Thank you

Subject: How to prevent post when data is not conform - by: r038tmp5

$
0
0
I have used the BeforePost event and Abort into the procedure if data is not conform.

Subject: slow select - by: lorife

$
0
0
that was it!!! thanks!!! I've set choose, but I have a question, is there any problem when using: resultmode=use In other words, what's the bad thing of using it?

Subject: slow select - by: lorife

$
0
0
Hi Dmitry, it's still me :( The parameter you told me to modify works..now the query opens instantly! BUT the problem now is when I close the query...it takes about 5-6 seconds! it's just a: Query1.Open; Query1.Close; I'm attaching the stack. Is there anything you can do ? Thanks! http://www.da-soft.com/images/fbfiles/files/Appunti_Windows_1-d0c765d2e397f12fc9758a036511560d.jpg

Subject: FireDac Access Violation with Firebird - by: RodrigoLopez

$
0
0
Solved. I had a maprule that caused this problem. I deleted it and it works.
Viewing all 1040 articles
Browse latest View live