eyesberg
Create Repeater Data on handleRecordCreation
Is there a way to create datas from Repeater on handleRecordCreation. Here's the case, I need to create a BuyingInvoice and BuyingInvoiceItem (it comes from the Repeater so there'll be some BuyingInvoiceItem ) on handleRecordCreation. Because I need to the id from the created BuyingInvoice and BuyingInvoiceItem s to create a StockUpdate that have the foreignId of BuyingInvoice and BuyingInvoiceItems
Here's one of the BuyingInvoiceItem's data array
before I post this, I already try this way on the handleRecordCreation, well it works! BUT after the handleRecordCreation finished, it creates another BuyingInvoiceItems that comes from the Repeater
so the result on the Database there are two BuyingInvoiceItems with the exact same data just ith the different Id (because the data from Repeater created twice, the first one is on the handleRecordCreation that I made myself, and the other one is from outside the handleRecordCreation I guess?)
How to solve this so that the BuyingInvoiceItems didnt duplicated
1 replies