Page 1 of 1

UniTable return error must have the value

Posted: Wed 14 Oct 2015 17:26
by soyjoy
My dear , when you insert a record with Unitable on a table with primarykey , I got the following error: Field ID must have the value .
In IBTable I can tell IndexDefs , Name = ' pk_table '
Fields = ' FD_ID '
Options = [ ixUnique ]
How to do it with UniTable ?
Thankful since already .

Re: UniTable return error must have the value

Posted: Thu 15 Oct 2015 08:57
by AlexP
Hello,

To resolve the issue, you should set the UniQuery1.Options.RequiredFields property to False. In addition, if you have created persistent fields, then set the Required property of the need field to False

Re: UniTable return error must have the value

Posted: Thu 15 Oct 2015 19:31
by soyjoy
Thanks for the help , I will test and return to tell if it worked.

Re: UniTable return error must have the value

Posted: Fri 16 Oct 2015 10:39
by AlexP
If this solution doesn't help, please contact us again.

Re: UniTable return error must have the value

Posted: Fri 16 Oct 2015 20:53
by soyjoy
Hello,
Based on what informed me , I researched the component and decided as follows:
TUniTable > UniTable Editor > Options
> Provider: Interbase ;
GeneratorMode = gmInsert
KeyGenerator = ID_MY_TABLE


It worked perfectly.
Thank you very much for your support.

Re: UniTable return error must have the value

Posted: Mon 19 Oct 2015 04:17
by AlexP
Glad to see that you have found the solution. If you have any other questions, feel free to contact us.