Problem with saving the Data of programmaticaly created uitable

3 views (last 30 days)
I create a variable size uitable programmaticly (not using GUIDE) which works well. What I am struggling with is saving the content of the created table, it keeps telling "Reference to non-existent field 'load_table'". Even if I try to save it in another callback it keeps telling the same error. Any ideas? much appreciated.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 15 Jan 2016
You use handles.load_table but you never created that. You created load_table without storing it in handles
Mus'ab Ahmad
Mus'ab Ahmad on 19 Jan 2016
Edited: Walter Roberson on 19 Jan 2016
This code works:
handles.Load_Data = uitable('Units','pixels','Data', tabledata,.....);
And then in the save button callback
val_Load_Table = get(handles.Load_Data,'Data');
handles.mydata.Load_Table_val = val_Load_Table;
Thanks everybody for your suggestions :)

Sign in to comment.


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!