Hi people, I'm new user of Test Advantage ver 2009.2 with RFT 8.1, I'm just wondering how can I open the 'ColumnChooser' from a Grid. Anyone knows that?
Thanks,
Rick
Rick,
To show Column chooser for the root Band:
UltraGrid1Table().Click(AtList(AtRow(0), AtLocation(
"RowSelectorHeader")))
For a Child Band:
UltraGrid1Table().Click(AtList(AtRow(0),AtRow(0), AtLocation("RowSelectorHeader")))
if there are no rows in the Grid then you can show the column chooser by:
UltraGrid1Table().Click(AtList(AtLocation(
"Band"), AtIndex(0), AtLocation("RowSelectorHeader")))
Ammar,
I tried your statement:
it works! thank you very much!
but if there are no rows in the Grid, the statement you provided doesn't work yet. Any thought about that?
Nothing. Sorry, but it is true. :(
Can you send me a screenshot of the Empty Grid you are trying to click the Column chooser for
Sure. Here is the empty grid. Nothing has been recorded by RFT while clicking the Column chooser.
is this the entire control screenshot or just a part of it? if this is part of the control please send me the entire control screenshot. The reason I'm asking is that this looks like a child band (as the headers are indented to the right)
another question, when you ran
UltraGrid1Table().Click(AtList(AtLocation("Band"), AtIndex(0), AtLocation("RowSelectorHeader")))
What happen? was there any error in the script log?
if the grid only have one level of rows (i.e. flat Grid) Try This:
UltraGrid2Table().Click(AtLocation(
"RowSelectorHeader"))
let me know how is goes.
yes, it is the entire control. I bring a new screenshot for you.
regrading the statements you suggest, I tried them and get both error logs as below:
1) UltraGrid1Table().Click(AtList(AtLocation("Band"), AtIndex(0), AtLocation("RowSelectorHeader")))
Exception occurred during playback of script [NewColumnChooser] [CRFCN0670E: RationalTestScriptException on line 48 of script NewColumnChooser - System.NullReferenceException: Object reference not set to an instance of an object..].
2) UltraGrid2Table().Click(AtLocation(
Exception occurred during playback of script [NewColumnChooser] [CRFCN0670E:
: Unable to cast object of type 'Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement' to type 'Infragistics.Win.UltraWinGrid.RowUIElement'..].
I hope this is meanful for you.
I'm asking our Developer for the sample application. Thanks for your help.
Rick, look like you found a bug :) can you send me a sample application that reproduce the issue so I can create a bug report and get you a fix? you might want to reach out to the application developer to help creating this sample application.
Let me know if this is an possible.
Regards,
Ammar