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

33 views (last 30 days)
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!

Answers (0)

Categories

Find more on Weather and Atmospheric Science in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!