enabledRule handler does not work for popupButton on groupTable

I have placed a popupButton in my groupTable and seeing that the enabledRule event handler is now being executed. Is this a bug ?

    @Install(to = "reviewPopupButton.reviewReview", subject = "enabledRule")
    private boolean reviewPopupButtonReviewReviewEnabledRule() {
        PatientForm pf = patientFormsTable.getSingleSelected();
        notifications.create(Notifications.NotificationType.ERROR)
                .withCaption("reviewReview EnabledRule")
                .withDescription("reviewReview EnabledRule")
                .show();
        return false;
    }

Thank you for reporting the problem. We created an issue

Best regards,
Irina

Hello, @robert.gilbert!
Please look at the comment and try to set up your rule

Thank you Irina,

It now works !

I read the comment and my enabledRule is now triggered/invoked once I call refreshState for action in SelectionEvent of table.

    @Subscribe("patientFormsTable")
    public void onPatientFormsTableSelection(Table.SelectionEvent<PatientForm> event) {
        reviewPopupButton.getAction("reviewPrint").refreshState();  // Need to call method refreshState() so that "enabledRule" for Action is triggered
    }
1 Like