Hi All,
I have 3 forms
customer: based on customers
customerList: based on customers (TableView)
orderList: based on orders (table view)
I have a relation customers_to_orders.
In a customer form, I have fields that displays information for order, so they have as DataProviders “customers_to_orders.xxx”.
When I create a new record on the customers_to_orders relation which has at least one record and initialize company_id and creation_date, All works fine.
but when I create a new record on the customers_to_orders relation and initialize company_id and creation_date, the fields which have as dataproviders “customers_to_orders.xxx” didn’t display the initialization data immediately.
I’ve attached a solution that illustrates the issue.
To reproduce it:
1)Launch the solution
2) select a customer that has at least one order (in first tab)
3) Add an order (New Order button) and everything is fine, initialization is visible immediatly (company_id = 19 and creation_date = new Date())
4)Now,select a customer that has no orders or select a customer and delete orders(Delete orders button)
5)Add an order (New Order button) and you will constate that initialization is not visible immediately!!
welcome to any explanation and thank you for your support.
relations_test.servoy (6.96 KB)