Page 1 of 1

Find column selected index or row selected index of a table

Posted: Fri Oct 18, 2024 5:45 pm
by Isabelle
Hello,

We use version 26.0.0.0 of oxygen sdk.

We need to retrieve the indexes of the selected row or column in a table.
For now, I have found this :

Code: Select all

authorAccess.getEditorAccess().getAuthorSelectionModel().getSelectionInterpretationMode().name()
This tells us if it is a row or column selection (TABLE_ROW or TABLE_COLUMN).
But how do I find the index of it ?

Thanks,
Regards
Isabelle

Re: Find column selected index or row selected index of a table

Posted: Mon Oct 21, 2024 8:16 am
by Radu
Hi Isabelle,
There is no index information in that SelectionInterpretationMode object.
Maybe you can use this API "ro.sync.ecss.extensions.api.AuthorAccess.getTableAccess()" after you map an offset to a node (ro.sync.ecss.extensions.api.AuthorDocumentController.getNodeAtOffset(int)).
Regards,
Radu