Hi.
I haven’t seen this before, or probably didn’t bother with it.
I am trying to add a new insert database step in server action. In the insert options, when I select the table, I can see all the columns, except the ID (primary key) column.
When I add it using the + button, it does get added to the list.
But, then I cannot edit the value of this column.
I have complete control over the ID and there will be no duplication etc.
How can I set this column’s value so that new entry is inserted in the DB with that value?
In addition to the two replies above mine - If you need to store some custom information in a database field, add it to your table as a regular field (not a primary key!).
Appreciate all the input. The general practice is definitely to use auto-increment and forget about the field when inserting rows. I usually keep it that way too.
But Wappler should give this flexibility in my opinion.
The field I am using is not auto-increment, just a primary key.
And SQL itself does not have any rule that primary keys need to be AI or primary keys cannot be set in an insert query.