Question

onProcessActionButtonClick

Hi;

I add the button to page.
The click function was bind to    onProcessActionButtonClick

This button work correctly;

I try to overide this function by my own one    

onCancelClaimButtonClick: function() {
                this.showConfirmationDialog(this.get("Resources.Strings.CancelClimeConfirmMessage"),
                    function(returnCode) {
                        if (returnCode === this.Terrasoft.MessageBoxButtons.YES.returnCode) {
                            this.onProcessActionButtonClick();
                        }
                    },
                    [this.Terrasoft.MessageBoxButtons.YES.returnCode, this.Terrasoft.MessageBoxButtons.NO.returnCode],
                    null);
            }

Now the message box appear.
the page closed but the process don't move to next step it stay on this page

any suggestions?

Regards

Tomek

Like

2 comments

Dear Tomek,

What do you mean by "the page closed but the process don't move to next step it stay on this page"? Why are you trying overriding you own method? Anyway please be advised that showConfirmationDialog is asynchronous so the main function will continue its execution while showConfirmationDialog handler executes.

Peter Vdovukhin,

 

Thanks;

I find the solution i have to run not onProcessActionButtonClick but onSaveButtonClick

 

Regards

Tomek;

Log in or register to comment