Skip to content

Parent Id is not in Child table when saving child table in MasterDetailRelation #5390

Answered by erehtolleh
erehtolleh asked this question in Help
Discussion options

You must be logged in to vote

Ok NVM.

The default Sergen doesn't create xyzTableEditor and xyzTableEditorDialog for whatever reason. You have to create the two files. In The xyzTableEditor you have to make sure it opens the xyzTableEditorDialog.

xyzChildEditorDialog.ts File

/// <reference path="../../Common/Helpers/GridEditorDialog.ts" />
namespace myproject.myapp {

    @Serenity.Decorators.registerClass()
    @Serenity.Decorators.responsive()
    export class xyzChildEditorDialog extends Common.GridEditorDialog<xyzChildRow> {
        protected getFormKey() { return xyzChildForm.formKey; }       
        protected getLocalTextPrefix() { return xyzChildRow.localTextPrefix; }
        protected getNameProperty() { retur…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@erehtolleh
Comment options

Answer selected by erehtolleh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant