
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Not returning Row number by using LeanFT SAPGUI Method findRowWithCellTextInColumn("text","column")
I am expecting row number by using LeanFt SAPGUI sdk method findRowWithCellTextInColumn("text","column") but it's returning like "com.hp.lft.sdk.internal.sap.gui.SapGuiTableRow@20312893".
Please help me on below code:-
Table ConditionTable=session.describe(Table.class, new TableDescription.Builder()
.type(com.hp.lft.sdk.sap.gui.ComponentType.TABLE_CONTROL).name("SAPLV69ATCTRL_KONDITIONEN").build());
TableRow<TableCell> intRow=ConditionTable.findRowWithCellTextInColumn("ZRFW",2);
System.out.println(intRow);
output:-com.hp.lft.sdk.internal.sap.gui.SapGuiTableRow@20312893
Thanks,
Surjeet

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Surjeet,
as you can see from the findRowWithCellTextInColumn API it returns TableRow<TableCell> and not an int (the row index).
the returned TableRow is an object representing the found row, you can get its cells using the getCells or getCell methods and then click, validate, or change the cell value (using the click\getValue\setValue methods).
LeanFT currently does not expose the row index of the found row, if you need this functionality, I would suggest to contact MicroFocus support and ask them to open an enhancement request on this matter.
Regards,
Anton


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Anton,
do you have a hint (sourcecode) how to click() the cell? When I do that I get a runtime error: after activating the cell it returns an LFT-exception object not found.
My main topic is: how to do a doubleclick on a cell? the grid.cell.doubleclick needs int values.
Thanks for any tip
P.