Search found 9 matches

by stuartclennett
Wed Nov 05, 2014 9:58 am
Forum: Support
Topic: TDBRichViewEdit - updating record without calling .post
Replies: 4
Views: 13890

Thank you, I hadn't realised that TDataset.UpdateRecord was public :)
by stuartclennett
Tue Nov 04, 2014 5:34 pm
Forum: Support
Topic: TDBRichViewEdit - updating record without calling .post
Replies: 4
Views: 13890

Mostly because the modal form is not the main editing form -- and on the main editing form there is Save & Cancel buttons which do the post/cancel stuff. There is more to the record than just the document, so I have to give them opportunity to cancel the edits., which I can't do if the modal RVF ...
by stuartclennett
Tue Nov 04, 2014 2:23 pm
Forum: Support
Topic: TDBRichViewEdit - updating record without calling .post
Replies: 4
Views: 13890

TDBRichViewEdit - updating record without calling .post

Hi, I have a TDBRichViewEdit on a modal form. Its used for more advanced editing features -- there is a smaller TDBRichView on the main editing form. When the user has finished editing on the modal form, the form is just closed (i.e. Dataset.Post is not called as I don't want to affect other fields ...
by stuartclennett
Tue Oct 28, 2014 3:21 pm
Forum: Support
Topic: Dataset.Post clears formatting/unicode from TDBRichViewEdit
Replies: 8
Views: 23624

Hi Sergey, I didn't have OnSaveCustomFormat event assigned. However, your comment got me to question the FieldFormat property and I then found that my code was setting the FieldFormat to 'Text' during the formcreate event. (the record in the database can be either rich text or plain text and my IF ...
by stuartclennett
Mon Oct 27, 2014 5:24 pm
Forum: Support
Topic: Dataset.Post clears formatting/unicode from TDBRichViewEdit
Replies: 8
Views: 23624

Here's another gif that shows the DBRichViewEdit and a DBMemo attached to the same field. At the start, the contents are obviously binary (edited in my test app) When I edit the DBRichViewEdit nothing happens until I try to bold some text - then the RAW field contents change to plain text. Then ...
by stuartclennett
Mon Oct 27, 2014 3:50 pm
Forum: Support
Topic: Dataset.Post clears formatting/unicode from TDBRichViewEdit
Replies: 8
Views: 23624

I think this might be significant: I wanted to see the 'raw' contents of the field behind the TDBRichViewEdit, so I added a TDBMemo component on the same form. The TDBMemo shows the text from the DBRichViewEdit, but (obviously) in plain text, even though rvfoSaveBinary is flagged on the ...
by stuartclennett
Mon Oct 27, 2014 11:48 am
Forum: Support
Topic: Dataset.Post clears formatting/unicode from TDBRichViewEdit
Replies: 8
Views: 23624

Hi, No it has it's own RVStyle component. I just put together a test app (connected to the same DB server) and the TDBRichViewEdit behaves as expected. So I copied and pasted the RVStyle & DBRichViewEdit components from the test app to the 'real' app, and the problem still persists. I am really ...
by stuartclennett
Mon Oct 27, 2014 10:00 am
Forum: Support
Topic: Dataset.Post clears formatting/unicode from TDBRichViewEdit
Replies: 8
Views: 23624

Thanks for your reply Sergey.

Right click on component > Settings...

I have "Allow adding styles dynamically" ticked.

Here's a screen grab of all three settings pages:

http://imgur.com/4wUzcrg


Thanks
Stuart
by stuartclennett
Fri Oct 24, 2014 6:29 pm
Forum: Support
Topic: Dataset.Post clears formatting/unicode from TDBRichViewEdit
Replies: 8
Views: 23624

Dataset.Post clears formatting/unicode from TDBRichViewEdit

Hi, (Please bear with me, I am new to the TRichView components) I have a blob field in a SQL Server database that I've hooked up a TDBRichViewEdit component (via FireDAC & RemObjects DataAbstract) If I paste in unicode characters they're showing fine until I call dataset.post (via a Save button) and ...