I am trying to understand how selection and cursor position works. My goal is to go to a table cell and append text to the existing content of the cell.
When trying to determine how to position the cursor (set the selection) I have found two different Heirarchical indexes for the cursor position One that looks like: "
"0;18;3;1;1;6" where the numbers refer to sectionId, "blockId", tableRowId; tableColumnId; CellBlockId, offset
but if I get the offset by calling getHeirarchicalIndex or getIndex() I get indexes that look like:
"1;0;7;3;1;1;0;6" where 1;0;7 seems to correspond to 0;18 and 1;0;6 seems to correspond with 1;6
The second index is easier to retrieve from the Widget elements, but this index cannot be used to set the selection.
Is there some documentation on how to convert the two indexes?
Is there a simple way to get the heirarchical index of the last character in a table cell?
Alternatively is there another way to set the selection?
Also I am unclear on how to get the section Id (ie the zero before 18 in the above indexes)