Print Thread
saving to CLOB field not working
#59243 12/19/18 07:17 AM
Joined: Dec 2018
Posts: 8
D
David S Offline OP
Member
OP Offline
Member
D
Joined: Dec 2018
Posts: 8
I've got some TMS DB-aware components, including TDBAdvMemo, that are tied to a bunch of DB fields in TOracleDataSet components.

Some of these memos are tied to varchar2 fields, and one is tied to a CLOB field.

If I set the dataset into Edit mode, I can edit content in all of the controls except the one tied to a CLOB gets cleared instead of being saved.

I'm not getting an kind of error message.

Am I doing something wrong? A setting I may be overlooking?

Re: saving to CLOB field not working
David S #59247 12/19/18 10:27 AM
Joined: Aug 1999
Posts: 22,211
Member
Offline
Member
Joined: Aug 1999
Posts: 22,211
Can you show me the SQL text of the TOracleDataSet?


Marco Kalter
Allround Automations
Re: saving to CLOB field not working
Marco Kalter #59252 12/19/18 06:46 PM
Joined: Dec 2018
Posts: 8
D
David S Offline OP
Member
OP Offline
Member
D
Joined: Dec 2018
Posts: 8
select ds.rowid, ds.* from table1_datasets ds

There are a dozen fields in this table. When I put the dataset into Edit mode, they all save fine except the CLOB that was just added. Why is the CLOB not being saved?

Last edited by David S; 12/19/18 06:56 PM.
Re: saving to CLOB field not working
David S #59253 12/19/18 11:18 PM
Joined: Dec 2018
Posts: 8
D
David S Offline OP
Member
OP Offline
Member
D
Joined: Dec 2018
Posts: 8
This is really strange. I have a pre-process step that initializes a bunch of fields in the tables. I set this CLOB field to show a line of text as the first line.

It shows up in every record when I'm scrolling through the table, as expected.

But again, when I go into Edit mode and then set theMemo.Lines.Text := 'some more text', it shows up initially.

But when I do the Post, it's reverted to the original field contents.

I'm really puzzled.

Re: saving to CLOB field not working
David S #59255 12/20/18 09:42 AM
Joined: Aug 1999
Posts: 22,211
Member
Offline
Member
Joined: Aug 1999
Posts: 22,211
This is indeed puzzling. Can you check if it works correctly if you replace the TDBAdvMemo with a TDBMemo?


Marco Kalter
Allround Automations
Re: saving to CLOB field not working
Marco Kalter #59260 12/20/18 04:03 PM
Joined: Dec 2018
Posts: 8
D
David S Offline OP
Member
OP Offline
Member
D
Joined: Dec 2018
Posts: 8
Hmmm ... it works fine with TDBMemo.

Re: saving to CLOB field not working
David S #59261 12/20/18 04:18 PM
Joined: Dec 2018
Posts: 8
D
David S Offline OP
Member
OP Offline
Member
D
Joined: Dec 2018
Posts: 8
It also works with a TcxDBMemo


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.045s Queries: 15 (0.005s) Memory: 2.5193 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-07 15:09:07 UTC
Valid HTML 5 and Valid CSS