sharing data between two gui's
1 view (last 30 days)
Show older comments
I basically have one main GUI that is calling for a smaller GUI which simply contains a table and a push button. What I want to do is be able to obtain the data that the user inputted into the table in the smaller GUI and put it in a table in the main GUI; all done by using the pushbutton in the smaller GUI. Here is the following code I tried but failed:
===================================================================
MasterSet.m is the smaller GUI
ACModel is the main GUI =====================================================================
In the OpeningFcn function of the main GUI:
guidata(hObject, handles);
setappdata(0, 'hMainGui', get(handles.uitable12, 'Data'));
setappdata(get(handles.uitable12, 'Data'), 'NewValue', handles.MasterSet);
In the Re-Apply button of the smaller GUI:
guidata(hObject, handles);
setappdata(0, 'hMainGui', get(handles.uitable12, 'Data'));
setappdata(get(handles.uitable12, 'Data'), 'NewValue', handles.MasterSet);
0 Comments
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!