bugGNU Octave - Bugs: bug #63423, uitable cellselectioncallback does...

 
 

bug #63423: uitable cellselectioncallback does not work in a user case

Submitter:  Liang Tang <lt1234>
Submitted:  Sat 26 Nov 2022 03:18:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 7.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 26 Nov 2022 03:18:47 PM UTC, original submission:  

uitable is a mechanism to work with excel worksheets.  Bug report #63388 can be looked at as displaying different worksheets on
a same uitable.

This report is about an issue detected from implementing a basic row operation within a worksheet, given that the functionality
to add/delete uitable row/column is unavailable.  

Octave uitable syntax follows an older version of matlab uitable that matlab still supports. To detect the cell selection,
'cellselectioncallback' is the only method I know in this older syntax.  A user case below shows that, in this user case, 
'cellselectioncallback' is not exercised when the cells of a row are selected.  Please use the steps below to illustrate
the issue at step (e).  uitable_delete.m is attached. 


(a)uitable_delete in command window
(b)click on 5 of the row name.  All row 5 cells highlighted.  'cellselectioncallback' displays 'Row(s) 5 Selected' in command window.
(c)click on 3 of the row name.  All row 3 cells highlighted.  'cellselectioncallback' displays 'Row(s) 3 Selected' in command window.
(d)click 'delete row' push button on the right of the figure.  Row 3 is deleted.  Table contents below Row 3 move up. 
(e)click on 3 of the row name.  All row 3 cells highlighted but 'cellselectioncallback'  displays nothing. 'cellselectioncallback' is not exercised when the cells are highlighted/selected.  <== THIS IS THE ISSUE
(f)(optional) click 'delete row' push button. Nothing happens because the selected row is not defined by 'cellselectioncallback'. 
(g)click on 3 of row name.  All row 3 cells highlighted again but 'cellselectioncallback'  still displays nothing. 'cellselectioncallback' is not exercised. 
(h)(optional) click delete row push button. Nothing happens because the selected row is not active through 'cellselectioncallback'. 
(i)click on any other row or any cell. Everything is back to normal. Then click 3 of the row name. Row 3 works again.

Thanks,

Liang Tang <lt1234>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54024:  uitable_delete.m added by lt1234 (4KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lt1234 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-11-26 lt1234 Attached File- Added uitable_delete.m, #54024

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code