Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] How to select an Checkbox in Table without index(How to select an Checkbox in Table without index)
icon5.gif  [SOLVED] How to select an Checkbox in Table without index [message #1455507] Wed, 29 October 2014 12:47 Go to next message
Dominik Gabriel is currently offline Dominik GabrielFriend
Messages: 113
Registered: June 2013
Senior Member
Hi,

I have the following table:

index.php/fa/19707/0/

this isn't always the same row. if u record checking the checkbox, a "get-cell x x" will be recorded. so I dont know how to check this checkbox without using the index of the row to make it universal. Can somebody help

Sincerely
Dominik

[Updated on: Wed, 30 September 2015 06:55] by Moderator

Report message to a moderator

Re: How to select an Checkbox in Table without index [message #1455535 is a reply to message #1455507] Wed, 29 October 2014 13:18 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Dominik,

You can get a row index by a value of a definite column (Name column in your case):

let [val indx [get-view ViewName | get-tree | get-item "My Name" -column Name | get-property index -raw | int]]{

with [get-view ViewName | get-tree] {
get-cell $indx 0 | check

}
}

Please try and let us know if it helped.

Yours sincerely,
Ulyana.
Re: How to select an Checkbox in Table without index [message #1455566 is a reply to message #1455535] Wed, 29 October 2014 14:00 Go to previous message
Dominik Gabriel is currently offline Dominik GabrielFriend
Messages: 113
Registered: June 2013
Senior Member
Hi,

Thank you very much it worked well.
i just edited a little bit for me:
with [get-table] {
	let [val indx [get-item "My Name" -column Name | get-property index -raw | int]]{
		get-cell $indx 0 | check
	}
}


Sincerely Dominik
Previous Topic:[SOLVED]How check clipboard?
Next Topic:[SOLVED] How to make if statement if window exists?
Goto Forum:
  


Current Time: Fri Apr 26 11:19:56 GMT 2024

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

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

Back to the top