Skip to content

Pass Values from master to Editor and then Editor Dialog #5429

Answered by WasimAhmad
reach2rv asked this question in Help
Discussion options

You must be logged in to vote
namespace younamespace {

    @Serenity.Decorators.registerClass()
    export class xxxEditor extends Common.GridEditorBase<xxxRow> {
    //add property in editor
        OrderID: number;

....
        protected initDialog(dialog: EmployeePropertyDialog) {
            super.initDialog(dialog);
            dialog.OrderID = this.OrderID;
        }
       
    }
}

// also add property in editor dialog.

namespace yournamespace {

    @Serenity.Decorators.registerClass()
    export class xxxDialog extends Common.GridEditorDialog<xxxRow> {
        //add property in editor
        OrderID: number;
        protected form = new xxxForm(this.idPrefix);
........
    }
}
// and finally in master en…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WasimAhmad
Comment options

@reach2rv
Comment options

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