Page 1 of 1
Problem LiveBindings with Tblobfields
Posted: Mon Aug 08, 2022 9:00 am
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
Re: Problem LiveBindings with Tblobfields
Posted: Mon Aug 08, 2022 9:14 am
by Ajaz
If the query is closed, it allows the link to be made, but when activating it, the "EvalError" exception is thrown
Re: Problem LiveBindings with Tblobfields
Posted: Mon Aug 08, 2022 9:24 am
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
Re: Problem LiveBindings with Tblobfields
Posted: Tue Aug 09, 2022 6:50 am
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.
Re: Problem LiveBindings with Tblobfields
Posted: Tue Aug 09, 2022 11:50 am
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.