Create button in editor
Create button in editor
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
This discussion has been closed.
Answers
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
Thanks Allan,
That did it!