Hi Community,
I have the following multi lookup fields:
I want the one on the right side (InvoiceRecipient) to be prefilled with the value of the one on the left (ContractClient) if there is anything in the one on the left.
//multiLookup Feld "ContractClient"
"ContractClient": {
"caption": {"bindTo": "Resources.Strings.Client"},
"dataValueType": this.Terrasoft.DataValueType.LOOKUP,
"multiLookupColumns": ["Account", "Contact"],
"isRequired": true
},
//multiLookup Feld "InvoiceRecipient"
"InvoiceRecipient": {
"caption": "Invoice recipient",
"dataValueType": this.Terrasoft.DataValueType.LOOKUP,
"multiLookupColumns": ["InvoiceRecipientContact", "InvoiceRecipientAccount"],
"isRequired": true
},
A simple this.set("InvoiceRecipient", this.get("ContractClient") ) doesn't work, because the InvoiceRecipient object doesn't exist (undefined).
Has anyone been able to solve this problem?
Best regards,
Oliver