App Designer: UITable Cell Selection Callback does not show variables in debug workspace + GUIDE UIs called by .mlapp UITable methods do not show uitable content
조회 수: 2 (최근 30일)
이전 댓글 표시
<<
>>
I have come across the following (seemingly connected) issues while starting to integrate App Designer UIs in a system of interconnected UIs made in GUIDE:
- .mlapp UITable callbacks (CellSelection, CellEdited) do not show variables in debug workspace. Also true for any code called by these callbacks
- GUIDE UIs using uiwait loose all uitable (display?) funcionality when called from the .mlapp's UITable callbacks
I've made the two simple example GUIs attached to demonstrate:
- app1.mlapp is the starting point - please open and set a breakpoint in both the "ButtonPushed" and the "UITableCellSelection" methods (no matter where)
- start it and click the "button", invoking the "ButtonPushed" method
- close the example GUIDE UI again - it has no other functionality than filling its table with "foo" and "bar".
- everything was as expected: One can see expected variables in the method's debug workspace. The GUIDE UI that is called works just fine, as well as the called some_function.m. They also do show their debug workspace correctly when you set breakoints in these.
so far, so good.
- however, now select a cell in the table, invoking the CellSelection Callback
- Issues:
- the workspace of the method is displayed empty when hitting the breakpoint. this seems to be true for any code called by the UITable's methods (as can be demonstrated by setting a breakpoint inside the guide_ui or "some_function.m" supplied in the example)
- additionally, the table in the GUIDE UI does not display its elements.
- both is true for any chain of code that has initially been called by a .mlapp UITable method.
I guess I have to flush/refresh something, as the UITable's Callback seems to block some general MATLAB UI functionality. I tried the usual suspects (refresh etc.) but without success.
I would be very glad on any feedback.
Further info:
- all above also true for CellEditCallbacks (not shown in example)
- GUIDE UIs not using uiwait do not loose their table functionality when being called form a .mlapp's UITable's callbacks. Also, .mlapps called by UITable's callbacks do not seem to be affected.
- other GUIDE UI elements (e.g. text field etc.) do not seem to be affected.
- they still all suffer from not showing debug workspace content which is VERY sad
- had to zip the files - mlapp is not supported. This also is somewhat... not so cool ;)
댓글 수: 5
Spencer Laddy-Locks
2021년 10월 9일
편집: Spencer Laddy-Locks
2021년 10월 9일
@Dominik Schuster I must thank you,
You prevented me from ripping some hair out (it was a close one, trust me). It's still not fixed in 2019a. @Adam Is there a way to get attention to this at all, or is it a lost cause at this point?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!