ID is empty when adding new employee

ID is empty when adding new employee

truck7561truck7561 Posts: 3Questions: 2Answers: 0

I am using NET Framework C#. When adding new employee the ID is empty after submission. All other data shows up but I need the unique identifier. How do I pass a unique identifier to the ID? I don't see anyplace to put a sql statement and I don't see any on the examples.

Thanks!

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Your scenario is not very clear. Are you using the Editor? If not, how are you doing updates?
    Ordinarily a unique identifier would mean an auto-increment field in the database.

    I don't see any on the examples.

    Which examples are you using?

  • truck7561truck7561 Posts: 3Questions: 2Answers: 0

    tangerine,

    Thanks that is what I was think. I am going to have to do some work on the database.

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin

    Yes, Editor largely assumes that you will be using an auto-incrementing serial for the table's primary key. It is possible to submit a value, such as for stock keeping where each item will need a unique id anyway, but I'd typically just use a serial column and a unique column for that.

    Allan

Sign In or Register to comment.