Search code examples
c#xaf

XAF - Stop auto save when trying to add new child in parent child view


When trying to add record in child view, it require to save the parent record. how can i stop this behavior?

Look into the photo


Solution

  • It is impossible to make it work unless you set LinkNewObjectToParentImmediately to false under Program.cs . But in this case there won't be any relationship between objects. You can override action by adding new controller but it is also useless in your case because there must an existing customer to link new invoice to.