App Designer User edit/update table
Show older comments
Hello,
I am new to app designer so forgive me for asking silly questions:
I have loaded an cell array data from excel into my app design table:
and I would like to know how can a user update the value in cell?
I have created a call back function below that It's supposed to responde to user commond whenever the table is clicked
function CBICDispCellEdit(app, event)
indices = event.Indices;
newData = event.NewData;
app.table.ColumnEditable=[false,false,false,false,false,false,true];
app.table.Cmd=categorical({'open';'close'});
But nothing happened when I clicked on the table...
Is there anything I am missing here? Thanks
Accepted Answer
More Answers (1)
John K. George
on 6 Jul 2021
0 votes
Hi Kojiro,
I'm trying to implement your solution after reading an excel file. Please see attached. I have taken a slightly different approach due to my contraints but I'm hoping I can still use your implementation - w/modification. thx.
John
2 Comments
John K. George
on 6 Jul 2021
What am I missing? The dropdowns are still not working when I run from AppDesigner. I can only highlight the column values - no dropdowns.
Kojiro Saito
on 7 Jul 2021
Could you post your question in a new thread, please?
Categories
Find more on Spreadsheets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
