Print Thread
SFieldRequired error
#2148 06/19/01 07:07 PM
Joined: Jun 2001
Posts: 8
Berlin, Germany
R
rb1234 Offline OP
Member
OP Offline
Member
R
Joined: Jun 2001
Posts: 8
Berlin, Germany
i get a SFieldRequired error messages when i apply data via TOracleDataset. there is a not null field ID. but i set this field in the before update trigger of the table in oracle so it's ok that it is null when i apply the data (it's ok for me, not for doa [Linked Image])

i use delphi5, TOracleDataset via midas. LockingMode is lmLockImmediate, RefreshOptions are [roBeforeEdit,roAfterInsert,roAfterUpdate,roAllFields].

i get the error: field 'ID' required (don't know how exactly in english, in german: Feld 'NR' mu

Re: SFieldRequired error
#2149 06/20/01 05:13 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
You must either set the Required property of this field to False, or you must set TOracleDataSet.OracleDictionary.RequiredFields to False if you don't want to use persistent fields. In any other case the TDataSet will not allow you to post the record as long as any required field is null.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: SFieldRequired error
#2150 06/21/01 02:40 PM
Joined: Jun 2001
Posts: 8
Berlin, Germany
R
rb1234 Offline OP
Member
OP Offline
Member
R
Joined: Jun 2001
Posts: 8
Berlin, Germany
thanks for your quick reply.

ralf


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.141s Queries: 13 (0.102s) Memory: 2.5021 MB (Peak: 3.0405 MB) Data Comp: Off Server Time: 2024-05-16 13:52:09 UTC
Valid HTML 5 and Valid CSS