CODE
WDS_Spelare.Edit;
WDS_Spelare.Append; It is here the error message appears
TABLE WDS_Spelare
ERROR MESSAGE Field Dummy is required, but not supplied
CODE
WDS_Spelare.Edit;
WDS_Spelare.Append; It is here the error message appears
TABLE WDS_Spelare
ERROR MESSAGE Field Dummy is required, but not supplied
Do you have more details?
Is this in connection with a TWebDBTableControl?
Were all fields, i.e. also field Dummy added as persistent fields to the dataset?
This is how it is created when imported with aurelius
[Entity]
[Table('inkaplayer')]
[UniqueKey('Speldatum')]
[Id('FDummy', TIdGenerator.IdentityOrSequence)]
Tinkaplayer = class
private
[Column('Dummy', [TColumnProp.Required, TColumnProp.NoInsert, TColumnProp.NoUpdate])]
FDummy: Integer;
This is the fields in WDS_Spelare
No TWebDBTableControl
Set the Required
property of Dummy
field to False
.
When creating the database with HeidiSQL it is not possible to set an AUTO-INCREMENT field to accept NULL
I have created a new database that my program is conected to
Then made a new import with aurelius
But on all tables ther is inpossibel to save a new post
The new database is exactly the same as the old one
so somthing must have change with the import from aurelius
I have now tried withe several of the tables. Same result on all.
If I make a new post with HeidiSQL there is no problems
Maybe you have your TField.Required property set to True in the dataset? Can you please check and if that's the case, can you try to change it to False and test again?