I have table Documents where I need to choose Contract and Customer (both are linked)
In table Contract I have link to Customer too…
When I am creating new record in Document I wanna simpy choose Contract and get Customer automatically. How can I do it?
I have this JS… It works but doesn’t save any value. Why?
// Only new records (not edited)
if (doo.model.ver == -1) {
// SETTING CUSTOMER FROM CONTRACTS
var Contract = doo.model.DOC_contract.value;
if (Contract) {doo.model.DOC_customer.value = Contract.CON_client;}
}
I’ve tried setValue instead but it stops working also… Thanks for help.