Alpha Developers Network

Guest


Author Topic: Insert with UNBOUND component  (Read 463 times)

0 Members and 1 Guest are viewing this topic.

qmiadmin

  • Guest
Insert with UNBOUND component
« on: September 25, 2013, 04:58:14 AM »
I have an unbound UX component that saves it's data to two SQL tables. I need to pull the Primary Key from the first save for use with the second save. I'm using the "Update, Insert or Delete data (for use with an UNBOUND component" action JavaScript to save to both tables. There is a "JavaScript - after insert success" property that says you can obtain the primary key of the saved record by referencing e.primaryKey.

I'm a total noob in javascript and I have no idea how to get e.primarykey into a variable that can be used in the second Insert. Can anyone assist me with this?

Thanks,
Jim