Hi guys,
Need help on my parent child problem. So I have 2 forms, lets say FormHeader and FormDetail.
There is one field in Form Header, named : NextLineNum, its datacardcontrol - default property is Parent.default
As I have the FormDetail, I want every time I add this with NewForm(FormDetail), when submit both form, same time, the FormHeader - field NextLineNum is added by 1, but if it is on edit form, EditForm(FormDetail), the Submit(FormHeader), don't add this field, just update which is will be same as the initial value.
As mentioned, I'm using Submit for both. so I didn't use Patch, because I want to make use its form validation automatically. But now I'm confuse how to make those logic works ?
Please help.
Thanks in advance
Thanks