Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Tree Table input text in specific cells?(Tree Table input text in specific cells)
Tree Table input text in specific cells? [message #1793127] Tue, 31 July 2018 11:53 Go to next message
romano clemensFriend
Messages: 5
Registered: July 2018
Junior Member
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]

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 Go to previous messageGo to next message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 255
Registered: March 2012
Senior Member
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 Go to previous messageGo to next message
romano clemensFriend
Messages: 5
Registered: July 2018
Junior Member
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]

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 Go to previous message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 255
Registered: March 2012
Senior Member
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
Previous Topic:Static functions in Jubula - HowTo
Next Topic:User defined functions: extension functions 1 HowTo
Goto Forum:
  


Current Time: Mon Oct 14 21:58:50 GMT 2024

Powered by FUDForum. Page generated in 0.03849 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top