Create button in editor

Create button in editor

webpointzwebpointz Posts: 126Questions: 30Answers: 4

I am having an issue with Editor.

I have a editor table that displays addresses for a particular customer. When they edit an address, I show the customerid that is part of the record and it displays fine.

However, when they CREATE a new address, I want the INSERT into the addresses table to include the customerid of the user who is logged in, but the insert puts a "0" as the customerid.

What am I doing wrong?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Can you show me the code you are using to insert the value? Without that I don't know what could be going wrong.

    I would suggest using the Field->setValue() method with a session variable for the logged in user if you are not already.

    Thanks,
    Allan

  • webpointzwebpointz Posts: 126Questions: 30Answers: 4

    Thanks Allan,

    That did it!

This discussion has been closed.