Model Advisor "Fix" Button Disabled in Toolbar but functional via "Fix this Check"

조회 수: 31 (최근 30일)
I have a functional model advisor custom check with a "fix" solution implemented (also functional). However the "fix" button is disabled in the toolbar, but I can right-click the failed check and click "fix this check", and the fix solution works as expected. How do I get the toolbar enabled?
All of the help I see on the topic uses a style type of "DetailStyle" whereas I am using "StyleOne" (this is older code I am using in a newer version of matlab). I would like to avoid changing the style type.
My fix is implented as follows:
if self.HasFix
myAction = ModelAdvisor.Action;
myAction.setCallbackFcn(@self.Fix);
myAction.Name = self.FixName;
myAction.Description = self.FixDescription;
rec.setAction(myAction);
end
Everything works, just the toolbar "fix" button is disabled for some reason!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Weather and Atmospheric Science에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by