In a dialog component data entered in the order header and order detail is saved via the command {dialog.object}.submit(), How do I save the derived Invoice number from a custom auto increment function in a Dialog component? I think the data is saved as a batch transaction, I want to follow Tom's style wherein I will set the invoice number as autoincrement in the field rule and then I will save first the order header, then enter data in the order detail of the dialog component's repeating section, but I could not do it because there are validation rules that restrict saving with a blank invoice detail, that's why i created a custom increment function so that invoice will be generated to be saved when the {dialog.object}.submit() is called,