Jump to content


Photo

Editing Memo field


  • Please log in to reply
8 replies to this topic

#1 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 25 January 2010 - 02:05 PM

Hello
I use an Access Database with ADO to control it with a Delphi application.
In design time I created my NextDBGrid, few column are memo type, I configured them to display full content.
It's working fine, but when I try to editing a cell, I have this error message
QUOTE
Le projet SuiviAT.exe a provoqué une classe d'exception EDatabaseError avec le message 'Impossible d'accéder au champ 'Nature' comme type Text'. Processus stoppé. Utilisez Pas-à-pas ou Exécuter pour continuer.

With debugging the error occur here
CODE
procedure TNextDBGrid.CompleteEdit;
var
  Field: TField;
begin
  try
[...]
      if (Field <> nil) and Field.CanModify then Columns[ACol].ApplyField(Value); //Value = '(Memo)'
[...]
end;


To validate my ADO connection configuration, I tested this modification of Memo field with a TDBMemo and it's work.

Thanks for your help
++
Qwaz


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 25 January 2010 - 03:10 PM

Hello Qwaz,

Can you please translate me a error you got on english? Thank you.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 25 January 2010 - 03:34 PM

Hello
Sorry tongue.gif
it's something like this
QUOTE
The project SuiviAT.exe raise error exeption EDatabaseError with the message 'Not possible to access at field 'Nature' as text format'. Processus stoped. Use step by step or Play to continu.

++
Qwaz

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 25 January 2010 - 03:46 PM

Hello Qwaz,

Maybe this field cannot be modified.

Can you please send me very small demo project with this field and database to I test it. I am sure that it will help.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 25 January 2010 - 04:04 PM

Please find the small project.
Thanks
Qwaz

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 25 January 2010 - 04:55 PM

Hello Qwaz,

Thank you for your demo. Unfortunately this problem will stay for some time until I find how to enable editing of memo text.

It looks easy, but I will need to somehow put it in a columns.

Thank you again for your demo, I will use it when I work on this feature.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 25 January 2010 - 05:09 PM

Hello Boki
No problem for demo, I hope you'll find the solution.
++
Qwaz

#8 Atheling

Atheling
  • Members
  • 3 posts

Posted 22 January 2014 - 12:30 AM

Dear Boki

I have the same issue as above. Is there a way of editing a Memo Column in the latest version?

Also, the in-place editor for a Time Column doesn't seem to work with the time mask / format as expected, i.e. it edits like string text without the scroll arrows. In this regard, do you have any advice for only returning the time from a database TDateTime field? The Time Column is populated with the date too, regardless of the mask or format restriction.

Any help would be much appreciated.

Best wishes

Atheling

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 22 January 2014 - 07:58 PM

Hello,

Memo column should work fine, maybe a problem is in field. If you may send me demo, I may see what stop editing.

Time Column inplace editor will be re-build, I am not happy how it work from start.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users