I use the DB for basic transaction management or an online shop. I am trying to optimize with scripts.
I have the following (simplified) structure:
Libs:
Contacts
Transactions
An entry transaction has a link to an entry in Lib "Contacts".
When running a script in Lib Transactions, how can I reference the linked entry?
Such as:
//create a new entry in Lib Transactions with data from current entry
var e = entry();
var transactions = libByName("Transransactions");
var newTransaction = new Object();
newTransaction["email"] = e.field("email");
newTransaction["Contacts"] = e.field("Contacts");
transactions.create(newTransaction);
Furthermore, is there a way to link entries within a script?
Thanks
Max
Furthermore, is there a way to link entries within a script?