Mailingliste - Einträge 2006

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] extracting the row number for a grid/table

  • Subject: Re: [qftestJUI] extracting the row number for a grid/table
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 31 Jan 2006 19:16:36 +0100

Hi Mark,

though tables often display a focus border around a table cell, they
don't really have a concept of a "focused" row. The closest is the
anchor selection index which most often coincides with the selected

You can try to use the following sUT script:

table = rc.getComponent("id of table")
rc.setLocal("row", table.getSelectionModel().getAnchorSelectionIndex())

then access the cell with


Best regards,

Mark Willburger <Mark_Willburger@?.com> writes:

>    i'm trying to extract the row number that has focus on it of a
>    grid/table because i need to delete the row, it has to be dynamic
>    because i don't know where the row will be
>    for example when i click on the row, i get
>    XXX.comRight.comLeft.table2.Name&6
>    table 2 is the name of the grid
>    Name is the name of the column
>    6 is the row number
>    i've tried fetch index and fetch geometry preceeded by a click on the
>    row and i always get "no item was found for index"
>    i need to do this just by the focus on the row
>    thanks in advance

Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH           
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876