Hi,
I have a simple list detail form which has two data sources. One is Parent data source name 'A' and other one is linked Active with 'A' called 'B'.
I have a requirement that record cannot be saved in data source 'A' until and unless at least one record exist in data source 'B' corresponding to the parent record.
For this, I override the validateWrite method of data source 'A' and placed a condition that if record does not exist in data source 'B', it will return false. But by doing this, I am getting an issue that when ever I try to create a record in data source 'A' and proceed to create record in data source 'B', it gives me an error that at least one record need to be exist in data source "B' to save record in data source 'A'.
Any suggestions/solution on how to solve this?