
Hi,
Addresstype. Address
Invoice. Address1
Billing. Address 2
Remit to. Address3
Delivery. Address 4.
Above table has two columns of address type and address.
My question is when I modify/adding new the invoice /billing address then my record should get inserted into other table.
Hi Pravasti,
Usually, you don't need to insert data into another table before the user saves the record on the form. If the user will do the change several times you will get a lot of records in the address table.
Usually, for this kind of requirement you need to utilize insert\update on and check if needed conditions are matched, insert a record.
For the update case, you can get original values before super in the update method with this.orig() method and compare if the value was changed or not.