Problem with master-detail relationship when having a lookup field to same controller.

Problem with master-detail relationship when having a lookup field to same controller.

Way to reproduce the problem with Northwind:
1. Create Orders and OrderDetails controllers normally.
2. Add OrderDetails Dataview field to Orders controller
3. Add new field (for example "FollowUpOrder") to Orders table and Code On Time controller. Configure this field to be lookup field to Orders controller.
4. Generate and open one order. Add some other order to FollowUpOrder field.

See that when you go to another order using lookup "arrow", the order details are not shown properly. Seems that app only shows order details from the first order you opened.

Is there an alternative way to handle this? I need to have a lookup to another record from a same controler but the related records should be shown properly also.
1 person has
this problem
+1
Reply