Tree Table input text in specific cells? [message #1793127] |
Tue, 31 July 2018 11:53  |
Eclipse User |
|
|
|
Greetings,
is there a way to replace text in specific cells of a Tree-Table?
If I try the table methods I get toolkit not supported exceptions.
My current workaround looks like this
table.selectCell(row, rowOperator, column, columnOperator, numberOfClicks, xPosition, xUnits, yPosition, yUnits, extendSelection, mouseButton)
SwtComponents.createApplication().inputText(textToEnter)
SwtComponents.createApplication().keyCombination(new Modifier[] {Modifier.none}, "ENTER")
Also tried using the record mode which, then exported to api which suggested
AbstractComponents.createTextInputComponent(OM).replaceText(String)
Throwing "Operation not supported by the selected toolkit"
[Updated on: Thu, 09 August 2018 13:56] by Moderator Report message to a moderator
|
|
|
Re: Tree Table input text in specific cells? [message #1793495 is a reply to message #1793127] |
Thu, 09 August 2018 07:31   |
Eclipse User |
|
|
|
Hello,
Which action exactly does not work for you? Is the component a standard tree table?
Are you using RCP or SWT? Maybe there is more information in the logs why. Can you please look into them and maybe add the important parts here? They are located in your "UserHome/.jubula/logs"(rcp.log or swt.log or agent.log)
The workaround you have created would be the recommend workaround for the moment.
best regards
Marvin
|
|
|
Re: Tree Table input text in specific cells? [message #1793523 is a reply to message #1793495] |
Thu, 09 August 2018 13:55   |
Eclipse User |
|
|
|
Hey there,
I'm trying to edit/replace text in a cell chosen by column on a tree-table.
One of the problems is that treeTable actions select the first matching entry, so if there are two identical entries (by treepath) only the first can be selected.
The other is that replaceText/inputText does not exist for treeTable.
best regards
[Updated on: Thu, 09 August 2018 13:57] by Moderator Report message to a moderator
|
|
|
Re: Tree Table input text in specific cells? [message #1793704 is a reply to message #1793523] |
Tue, 14 August 2018 10:51  |
Eclipse User |
|
|
|
The TreeTable actions as well as the Table actions are selecting the first matching entry, how should we know you want some of the next one? ;) But you can either do a relative select from the first you have found, or use the move action to get to the correct one.
Indeed TreeTables do not have any kind of replace/input Text, so your workaround is the only way to go.
If you want to have such actions, please open a Bugticket against Jubula.
best regards
Marvin
|
|
|
Powered by
FUDForum. Page generated in 0.07331 seconds