Problem LiveBindings with Tblobfields

General TRichView support forum. Please post your questions here
Post Reply
Ajaz
Posts: 12
Joined: Wed Jun 15, 2022 7:35 am

Problem LiveBindings with Tblobfields

Post by Ajaz »

I am trying to bind a TblobField with a TRichViewEdit. I have included the fmxDBRV unit in the form.
Binding throws an exception: "EvalError in : Cannot assign a TBlobField to TRVDocumentProperty".
I have installed the latest version 20.3.1
Ajaz
Posts: 12
Joined: Wed Jun 15, 2022 7:35 am

Re: Problem LiveBindings with Tblobfields

Post by Ajaz »

If the query is closed, it allows the link to be made, but when activating it, the "EvalError" exception is thrown
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Problem LiveBindings with Tblobfields

Post by Sergey Tkachenko »

Include DBRV unit in your project (or fmxDBRV for FireMonkey version).

You can do it:
- for Delphi, by adding DBRV in "uses" of one of your units
- for C++Builder, by the line #pragma link "DBRV" in one of your units
Ajaz
Posts: 12
Joined: Wed Jun 15, 2022 7:35 am

Re: Problem LiveBindings with Tblobfields

Post by Ajaz »

I am using Delphi 11 in an FMX project using Firebird 2.5 as the database.
I have included from the beginning the fmxDBRV unit as indicated in the documentation. But when activating the query to the database, the exception "EvalError : Cannot assing TBlobField to a TRVDocumentProperty" is thrown, whether I do the link with TRichView or with TRichViewEdit.
Is there an example where this actually works?
I have done all the possible tests on several models and I have never been able to make the link successfully.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Problem LiveBindings with Tblobfields

Post by Sergey Tkachenko »

A demo is <TRichView FMX Dir>\TRichView\Demos\Delphi.FMX\DBDemos\DBLiveBindings.FireDAC_IB\DBLiveBindingsFD.dproj

The exception "Cannot assing TBlobField to a TRVDocumentProperty" is expected for projects that do not include fmxDBRV unit, but must not happen if this unit is included.

If you can create a simple project reproducing this problem, please send it to me to email richviewgmailcom.
Post Reply