How can I keep selection in Table unchanged in appdesigner?

2 ビュー (過去 30 日間)
Vishal Sharma
Vishal Sharma 2020 年 5 月 21 日
i am selecting an indices in a table and wrote functions to move those entities up or down.
I want selected indices to remain same but it is not.
function IMcellSelect_Callback(app, event)
app.input_lb.tbl_indices=event.Indices;
end
.
.
.
%button callback to shift selected content up
function IM_up_Callback(app, event)
updown(app,1,'up');
end
but after doing the operation, old selection changes.
ex.
'row 1 1'
'row 2 2'
'row 3 3'
'row 4 4'
if i select element 4, tbl_indices =[4 2], after moving it up by updown function, selection remains at [ 4 2](which is now element 3), it should change to indices [3 2] (element 4).
how can i fix this issue?

回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by