Issues with Grids in the App Designer
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I'm currently designing a rather extensive app, and I've run into an issue I can't seem to grasp.
The problem arises when I run my app and afterwards try to open it in App Designer. I get the error below, not from running the app, but just opening it in App Designer. It only occurs after I've run the app. If I close down MATLAB compleatly, re-open MATLAB, and then open the app in App Designer again, the error does not occur. But as soon as I've actually run and used the app, I can no longer open the app in App Designer.
I've tried to clear the work space and the memory without any influence.
Error in executing callback registered with ViewModel:
Children may only be set to a permutation of itself.
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController/arrangeNewlyAddedChild (line 87)
obj.Model.Children = arrangeChildren;
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController/processClientCreatedPeerNode (line 265)
obj.arrangeNewlyAddedChild(child, componentIndex);
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController/handlePeerNodeAdded (line 315)
obj.processClientCreatedPeerNode(peerNode);
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController>@(varargin)obj.handlePeerNodeAdded(varargin{:}) (line 175)
obj.ChildAddedListener = addlistener(obj.ProxyView.PeerNode,'childAdded', @obj.handlePeerNodeAdded);
Error in viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 106)
proxyCallback = @(src, event)callback(src, ...
As far as I can tell it seems to be related to my grids. That, at least, is the pop up message I get, when opening the app in App Designer.
The app usually looks something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/697294/image.png)
But after running it and re-opening it in App Designer it looks like this (please take note of the modified component browser (almost all components are missing)):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/697299/image.png)
I'm not sure how to debug this or why it's happening. It didn't use to behave like this, it just startet occuring - I'm not sure exactly when. I haven't updated MATLAB and it was initially designed and is still running on version R2021a.
3 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!