Selecting a GridView row

View: New views
11 Messages — Rating Filter:   Alert me  

Selecting a GridView row

by vinayak mhaske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi carl ,

i have used the following command in the Script to select a row:
T Window deviceGrid Click "Coords=712,12" .

Here i have to pass the coordinates of the Grid as the 5th parameter to select the appropriate row.
i have also tried ClickCell,SelectCell commands on this gridview using rational robot but it is not performing these actions.
So please let me know if is there any way to perform a click without passing the coordinates value.

Re: Selecting a GridView row

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As previously mentioned, RRAFS will not be able to do some things if Robot does not understand the control.  If a recorded script from Robot can only select an item by Coords then that is going to be the only way RRAFS will be able to do it, too.

So, what does your recorded grid click look like?  Coordinates?  Any text to go on at all?

If the recording does show that it recognized the text, then it is possible you might be able to debug through the RRAFS SelectCell code and see why it has a problem with your particular grid.  Specifically, how the code RRAFS tries to execute is significantly different from the code you recorded.

Carl
-----Original Message-----
From: vinayak mhaske
Subject: [safs-rrafs] Selecting a GridView row

hi carl ,

i have used the following command in the Script to select a row:
T       Window  deviceGrid      Click   "Coords=712,12" .

Here i have to pass the coordinates of the Grid as the 5th parameter to
select the appropriate row.
i have also tried ClickCell,SelectCell commands on this gridview using
rational robot but it is not performing these actions.
So please let me know if is there any way to perform a click without passing
the coordinates value.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by hys1117 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi carl
   i'm having the sam issue with rational robot.
i trying to read a row/cell/column of content from a datagridview control(which is new from .net v2)

here is the recorded script i got:
GenericObject Click, "Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr", "Coords=201,108"

as u can see, i clicking on a point of datagridview control, then i got the coords.
but coords won't be a useful parameter for automate test.
what i expecting to get is thing like text/itemtext from robot.

and i have tried to get some useful data from the datagridview control property.
i was retrieving the selectedcells preperty.
it just returns me the rowindex and columnindex.

do u think the RRAFS can help me solve my problem?

and i till new to RRAFS...
when i installing RRAFS, do i really need to install both SAFS and STAF

Carl Nagle wrote:
As previously mentioned, RRAFS will not be able to do some things if Robot does not understand the control.  If a recorded script from Robot can only select an item by Coords then that is going to be the only way RRAFS will be able to do it, too.

So, what does your recorded grid click look like?  Coordinates?  Any text to go on at all?

If the recording does show that it recognized the text, then it is possible you might be able to debug through the RRAFS SelectCell code and see why it has a problem with your particular grid.  Specifically, how the code RRAFS tries to execute is significantly different from the code you recorded.

Carl
-----Original Message-----
From: vinayak mhaske
Subject: [safs-rrafs] Selecting a GridView row

hi carl ,

i have used the following command in the Script to select a row:
T       Window  deviceGrid      Click   "Coords=712,12" .

Here i have to pass the coordinates of the Grid as the 5th parameter to
select the appropriate row.
i have also tried ClickCell,SelectCell commands on this gridview using
rational robot but it is not performing these actions.
So please let me know if is there any way to perform a click without passing
the coordinates value.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
safsdev-rrafs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by Todd@IDS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


In my testing of PowerBuilder client apps sometimes we would use something like

 

GenericObject Click,
"Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
"Row=1" or maybe "CurrentRow" or "LastRow"

Depending upon where in the grid you need to click,

 

You could also, use an Sqagetproproperty, with in a loop to find the Row value of the window,

 

Dim Gridvalue

Dim Rowvalue as integer

Rowvalue =1

Result=sqagetpropertyasstring ("\;Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
","Row= "& Rowvalue &",Gridvalue)

 

 

If  myvalue <> Gridvalue

Then Rowvalue = Rowvalue + 1

While myvalue <> Gridvalue

Do

click then next row

Rowvaulue + 1

exit do

Wend

if myvalue = Gridvalue then

endif

else do

Wend

Loop

 

This would loop thru each value in the Data grid until you found the row of data you were looking for.

 

 

 

until

 


--- On Thu, 7/17/08, hys1117 <hys1117@...> wrote:

From: hys1117 <hys1117@...>
Subject: Re: [safs-rrafs] Selecting a GridView row
To: safsdev-rrafs@...
Date: Thursday, July 17, 2008, 11:00 PM

hi carl
   i'm having the sam issue with rational robot.
i trying to read a row/cell/column of content from a datagridview
control(which is new from .net v2)

here is the recorded script i got:
GenericObject Click,
"Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
"Coords=201,108"

as u can see, i clicking on a point of datagridview control, then i got the
coords.
but coords won't be a useful parameter for automate test.
what i expecting to get is thing like text/itemtext from robot.

and i have tried to get some useful data from the datagridview control
property.
i was retrieving the selectedcells preperty.
it just returns me the rowindex and columnindex.

do u think the RRAFS can help me solve my problem?

and i till new to RRAFS...
when i installing RRAFS, do i really need to install both SAFS and STAF


Carl Nagle wrote:
> 
> As previously mentioned, RRAFS will not be able to do some things if Robot
> does not understand the control.  If a recorded script from Robot can only
> select an item by Coords then that is going to be the only way RRAFS will
> be able to do it, too.
> 
> So, what does your recorded grid click look like?  Coordinates?  Any text
> to go on at all?
> 
> If the recording does show that it recognized the text, then it is
> possible you might be able to debug through the RRAFS SelectCell code and
> see why it has a problem with your particular grid.  Specifically, how the
> code RRAFS tries to execute is significantly different from the code you
> recorded.
> 
> Carl
> -----Original Message-----
> From: vinayak mhaske
> Subject: [safs-rrafs] Selecting a GridView row
> 
> hi carl ,
> 
> i have used the following command in the Script to select a row:
> T       Window  deviceGrid      Click   "Coords=712,12" .
> 
> Here i have to pass the coordinates of the Grid as the 5th parameter to
> select the appropriate row.
> i have also tried ClickCell,SelectCell commands on this gridview using
> rational robot but it is not performing these actions.
> So please let me know if is there any way to perform a click without
> passing
> the coordinates value.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to
save $100. 
> Use priority code J8TL2D2. 
>
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
> 
> 

-- 
View this message in context:
http://www.nabble.com/Selecting-a-GridView-row-tp16677659p18523156.html
Sent from the safsdev-rrafs mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Back from vacation...

If you find no property that contains the text of interest, then it sounds like your version of Robot may not be up to handling this version of .NET control?  If you have access to it, you might want to see if RFT is better at handling these .NET controls.

Did you ever successfully get a ProcessContainer output of properties on this .NET App or control?  If so, can I see that output?

http://safsdev.sourceforge.net/sqabasic2000/ProcessContainer.htm

Carl

-----Original Message-----
From: hys1117
Subject: Re: [safs-rrafs] Selecting a GridView row


hi carl
   i'm having the sam issue with rational robot.
i trying to read a row/cell/column of content from a datagridview
control(which is new from .net v2)

here is the recorded script i got:
GenericObject Click,
"Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
"Coords=201,108"

as u can see, i clicking on a point of datagridview control, then i got the
coords.
but coords won't be a useful parameter for automate test.
what i expecting to get is thing like text/itemtext from robot.

and i have tried to get some useful data from the datagridview control
property.
i was retrieving the selectedcells preperty.
it just returns me the rowindex and columnindex.

do u think the RRAFS can help me solve my problem?

and i till new to RRAFS...
when i installing RRAFS, do i really need to install both SAFS and STAF


Carl Nagle wrote:

>
> As previously mentioned, RRAFS will not be able to do some things if Robot
> does not understand the control.  If a recorded script from Robot can only
> select an item by Coords then that is going to be the only way RRAFS will
> be able to do it, too.
>
> So, what does your recorded grid click look like?  Coordinates?  Any text
> to go on at all?
>
> If the recording does show that it recognized the text, then it is
> possible you might be able to debug through the RRAFS SelectCell code and
> see why it has a problem with your particular grid.  Specifically, how the
> code RRAFS tries to execute is significantly different from the code you
> recorded.
>
> Carl


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by hys1117 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Todd@IDS
  unfortunately,the datagridview i'm testing does not allow me to set row/col.
according to robot's help, there are only few valid parameter values can be set
they are coords and position but not row/col
row/col is available in datagrid in robot for sure.

and i guess row/col is available in datagrid in functional tester

cheers
Richard

Todd@IDS wrote:
In my testing of PowerBuilder client apps sometimes we would use something like
 
GenericObject Click,
"Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
"Row=1" or maybe "CurrentRow" or "LastRow"
Depending upon where in the grid you need to click,
 
You could also, use an Sqagetproproperty, with in a loop to find the Row value of the window,
 
Dim Gridvalue
Dim Rowvalue as integer
Rowvalue =1
Result=sqagetpropertyasstring ("\;Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
","Row= "& Rowvalue &",Gridvalue)
 
 
If  myvalue <> Gridvalue
Then Rowvalue = Rowvalue + 1
While myvalue <> Gridvalue
Do
click then next row
Rowvaulue + 1
exit do
Wend
if myvalue = Gridvalue then
endif
else do
Wend
Loop
 
This would loop thru each value in the Data grid until you found the row of data you were looking for.
 
 
 
until
 

--- On Thu, 7/17/08, hys1117 <hys1117@gmail.com> wrote:

From: hys1117 <hys1117@gmail.com>
Subject: Re: [safs-rrafs] Selecting a GridView row
To: safsdev-rrafs@lists.sourceforge.net
Date: Thursday, July 17, 2008, 11:00 PM

hi carl
   i'm having the sam issue with rational robot.
i trying to read a row/cell/column of content from a datagridview
control(which is new from .net v2)

here is the recorded script i got:
GenericObject Click,
"Type=Form;Name=MainForm;\;Type=Control;Name=splitContainer;\;Type=Panel;Index=1;\;Type=Control;Name=DitView;\;Type=TabControl;Name=tabControl1;\;Type=TabPage;Name=tabPageAttribute;\;Type=Panel;Name=panel1;\;Type=Control;Name=dataGridViewAttr",
"Coords=201,108"

as u can see, i clicking on a point of datagridview control, then i got the
coords.
but coords won't be a useful parameter for automate test.
what i expecting to get is thing like text/itemtext from robot.

and i have tried to get some useful data from the datagridview control
property.
i was retrieving the selectedcells preperty.
it just returns me the rowindex and columnindex.

do u think the RRAFS can help me solve my problem?

and i till new to RRAFS...
when i installing RRAFS, do i really need to install both SAFS and STAF


Carl Nagle wrote:
>
> As previously mentioned, RRAFS will not be able to do some things if Robot
> does not understand the control.  If a recorded script from Robot can only
> select an item by Coords then that is going to be the only way RRAFS will
> be able to do it, too.
>
> So, what does your recorded grid click look like?  Coordinates?  Any text
> to go on at all?
>
> If the recording does show that it recognized the text, then it is
> possible you might be able to debug through the RRAFS SelectCell code and
> see why it has a problem with your particular grid.  Specifically, how the
> code RRAFS tries to execute is significantly different from the code you
> recorded.
>
> Carl
> -----Original Message-----
> From: vinayak mhaske
> Subject: [safs-rrafs] Selecting a GridView row
>
> hi carl ,
>
> i have used the following command in the Script to select a row:
> T       Window  deviceGrid      Click   "Coords=712,12" .
>
> Here i have to pass the coordinates of the Grid as the 5th parameter to
> select the appropriate row.
> i have also tried ClickCell,SelectCell commands on this gridview using
> rational robot but it is not performing these actions.
> So please let me know if is there any way to perform a click without
> passing
> the coordinates value.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to
save $100.
> Use priority code J8TL2D2.
>
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> safsdev-rrafs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>
>

--
View this message in context:
http://www.nabble.com/Selecting-a-GridView-row-tp16677659p18523156.html
Sent from the safsdev-rrafs mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by vinayak mhaske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Carl,

I have tried to implement the FindRowNumber function in the Generic class library but i am not able to get the rows of a .net datagridview using this function.

I have used the ObjectDataTest defination tool to get the properties of a .net datagridview.
DATASOURCE property is not returning me the data present inside a girdview.

I have attached a screenshot for this along with this email.


So it is possible to perform a click action on a grid rows by just passing the text value instead of cordinates?

vinayak mhaske wrote:
hi carl ,

i have used the following command in the Script to select a row:
T Window deviceGrid Click "Coords=712,12" .

Here i have to pass the coordinates of the Grid as the 5th parameter to select the appropriate row.
i have also tried ClickCell,SelectCell commands on this gridview using rational robot but it is not performing these actions.
So please let me know if is there any way to perform a click without passing the coordinates value.
RationalDataGrid.JPG

Re: Selecting a GridView row

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The JPG cannot be accessed right now.  The Nabble site is down for maintenance, apparently.

I would like to see the properties of that gridview.
Does Robot record clicks on the grid row using text?  Does that play back successfully?
I'm trying to see the safsdev-rrafs archives, but it is painfully slow this A.M.

Do you have access to RFT for this testing?  The latest "Snapshot" for SAFS includes a great deal of .NET support for RFT in it.

Carl

-----Original Message-----
From: vinayak mhaske
Subject: Re: [safs-rrafs] Selecting a GridView row


Carl,

I have tried to implement the FindRowNumber function in the Generic class
library but i am not able to get the rows of a .net datagridview using this
function.

I have used the ObjectDataTest defination tool to get the properties of a
.net datagridview.
DATASOURCE property is not returning me the data present inside a girdview.

I have attached a screenshot for this along with this email.


So it is possible to perform a click action on a grid rows by just passing
the text value instead of cordinates?


vinayak mhaske wrote:

>
> hi carl ,
>
> i have used the following command in the Script to select a row:
> T     Window  deviceGrid      Click   "Coords=712,12" .
>
> Here i have to pass the coordinates of the Grid as the 5th parameter to
> select the appropriate row.
> i have also tried ClickCell,SelectCell commands on this gridview using
> rational robot but it is not performing these actions.
> So please let me know if is there any way to perform a click without
> passing the coordinates value.
>
>
http://www.nabble.com/file/p19180765/RationalDataGrid.JPG
RationalDataGrid.JPG

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I did get to see some of the archive posts.  Suggestions for using SQAGetPropertyAsString on properties like Row or Rows and locating specific text.  If you can get cell values by reading property values, then you should be able to make the keywords work as expected.  Much like a the custom libraries of SSTreeFunctions.SBL and VSFlexGridFunctions.SBL.  These are custom libraries handling specific custom controls primarily by accessing property values and methods.

Carl

-----Original Message-----
From: Carl Nagle
Subject: Re: [safs-rrafs] Selecting a GridView row

The JPG cannot be accessed right now.  The Nabble site is down for maintenance, apparently.

I would like to see the properties of that gridview.
Does Robot record clicks on the grid row using text?  Does that play back successfully?
I'm trying to see the safsdev-rrafs archives, but it is painfully slow this A.M.

Do you have access to RFT for this testing?  The latest "Snapshot" for SAFS includes a great deal of .NET support for RFT in it.

Carl

-----Original Message-----
From: vinayak mhaske
Subject: Re: [safs-rrafs] Selecting a GridView row


Carl,

I have tried to implement the FindRowNumber function in the Generic class
library but i am not able to get the rows of a .net datagridview using this
function.

I have used the ObjectDataTest defination tool to get the properties of a
.net datagridview.
DATASOURCE property is not returning me the data present inside a girdview.

I have attached a screenshot for this along with this email.


So it is possible to perform a click action on a grid rows by just passing
the text value instead of cordinates?


vinayak mhaske wrote:

>
> hi carl ,
>
> i have used the following command in the Script to select a row:
> T     Window  deviceGrid      Click   "Coords=712,12" .
>
> Here i have to pass the coordinates of the Grid as the 5th parameter to
> select the appropriate row.
> i have also tried ClickCell,SelectCell commands on this gridview using
> rational robot but it is not performing these actions.
> So please let me know if is there any way to perform a click without
> passing the coordinates value.
>
>
http://www.nabble.com/file/p19180765/RationalDataGrid.JPG

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Selecting a GridView row

by vinayak mhaske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Carl,

I am using Rational Robot Version 2003.06.00.436.008 and i have recorded a click action a .net 2005 Grid view which is given below:

Sub Main
    Dim Result As Integer

    'Initially Recorded: 8/28/2008  11:46:19 AM
    'Script Name: button
   
    Window SetContext, "Type=Form;Name=LxViewerFrame", ""
    GenericObject Click, "Type=Panel;Name=m_centerPnl;\;Type=TabControl;Index=0;\;Type=TabPage;Name=m_devicesPage;\;Type=Panel;Name=m_devicesPanel;\;Type=Control;Name=m_vSplitContainer;\;Type=Panel;Index=1;\;Type=Panel;Name=LxViewerRhsMgr;\;Type=TabControl;Name=m_devTabCtl;\;Type=TabPage;Name=m_devAlarmsPage;\;Type=Control;Name=m_devAlarmDisplay;\;Type=Control;Name=m_dataGridView", "Coords=151,96"

End Sub



After observing this recording of a click action on a row of a .Net Grid view it is clear that this action is performed based on the cordinates and i am interesting to perfrom click action based on the row data of a .Net Datagridview.


After clicking on Tools(Tab)==>ObjectDataTestDefination==>Click on Select Object button i tried to analyise the properties of a.net DataGrid view:

some of them are given below:

Rows() whic is returning me

DataGridViewRow { Index=0 }
DataGridViewRow { Index=1 }
DataGridViewRow { Index=2 }
DataGridViewRow { Index=3 }
DataGridViewRow { Index=4 }
DataGridViewRow { Index=5 }
DataGridViewRow { Index=6 }
DataGridViewRow { Index=7 }
DataGridViewRow { Index=8 }
DataGridViewRow { Index=9 }
DataGridViewRow { Index=10 }
DataGridViewRow { Index=11 }
DataGridViewRow { Index=12 }
DataGridViewRow { Index=13 }
DataGridViewRow { Index=14 }
DataGridViewRow { Index=15 }
DataGridViewRow { Index=16 }
DataGridViewRow { Index=17 }
DataGridViewRow { Index=18 }
DataGridViewRow { Index=19 }
DataGridViewRow { Index=20 }
DataGridViewRow { Index=21 }
DataGridViewRow { Index=22 }
DataGridViewRow { Index=23 }
DataGridViewRow { Index=24 }
DataGridViewRow { Index=25 }
DataGridViewRow { Index=26 }
DataGridViewRow { Index=27 }
DataGridViewRow { Index=28 }
DataGridViewRow { Index=29 }
DataGridViewRow { Index=30 }
DataGridViewRow { Index=31 }
DataGridViewRow { Index=32 }
DataGridViewRow { Index=33 }
DataGridViewRow { Index=34 }
DataGridViewRow { Index=35 }
DataGridViewRow { Index=36 }
DataGridViewRow { Index=37 }
DataGridViewRow { Index=38 }
DataGridViewRow { Index=39 }
DataGridViewRow { Index=40 }
DataGridViewRow { Index=41 }


SelectedCells()

returns me

DataGridViewTextBoxCell { ColumnIndex=0, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=1, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=2, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=3, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=4, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=5, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=6, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=7, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=8, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=9, RowIndex=3 }


Item property returns me N/A


DataSource()  property returns me



System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView



So i am not able to see any property that will return me the text present in a dataGridview Row.



I dont have any access to RFT and the installed version of rational Robot is 2003.06.00.436.008














vinayak mhaske wrote:
Carl,

I have tried to implement the FindRowNumber function in the Generic class library but i am not able to get the rows of a .net datagridview using this function.

I have used the ObjectDataTest defination tool to get the properties of a .net datagridview.
DATASOURCE property is not returning me the data present inside a girdview.

I have attached a screenshot for this along with this email.


So it is possible to perform a click action on a grid rows by just passing the text value instead of cordinates?

vinayak mhaske wrote:
hi carl ,

i have used the following command in the Script to select a row:
T Window deviceGrid Click "Coords=712,12" .

Here i have to pass the coordinates of the Grid as the 5th parameter to select the appropriate row.
i have also tried ClickCell,SelectCell commands on this gridview using rational robot but it is not performing these actions.
So please let me know if is there any way to perform a click without passing the coordinates value.
RationalDataGrid.JPG

Re: Selecting a GridView row

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like you are not going to have much luck with this grid in that version of Robot.
If you have access to later versions, like Robot V7, you might want to see if .NET support there has improved.  Ther version of Robot you mention sounds pretty old.

Carl

-----Original Message-----
From: vinayak mhaske
Subject: Re: [safs-rrafs] Selecting a GridView row

Carl,

I am using Rational Robot Version 2003.06.00.436.008 and i have recorded a
click action a .net 2005 Grid view which is given below:

Sub Main
    Dim Result As Integer

    'Initially Recorded: 8/28/2008  11:46:19 AM
    'Script Name: button

    Window SetContext, "Type=Form;Name=LxViewerFrame", ""
    GenericObject Click,
"Type=Panel;Name=m_centerPnl;\;Type=TabControl;Index=0;\;Type=TabPage;Name=m_devicesPage;\;Type=Panel;Name=m_devicesPanel;\;Type=Control;Name=m_vSplitContainer;\;Type=Panel;Index=1;\;Type=Panel;Name=LxViewerRhsMgr;\;Type=TabControl;Name=m_devTabCtl;\;Type=TabPage;Name=m_devAlarmsPage;\;Type=Control;Name=m_devAlarmDisplay;\;Type=Control;Name=m_dataGridView",
"Coords=151,96"

End Sub



After observing this recording of a click action on a row of a .Net Grid
view it is clear that this action is performed based on the cordinates and i
am interesting to perfrom click action based on the row data of a .Net
Datagridview.


After clicking on Tools(Tab)==>ObjectDataTestDefination==>Click on Select
Object button i tried to analyise the properties of a.net DataGrid view:

some of them are given below:

Rows() whic is returning me

DataGridViewRow { Index=0 }
DataGridViewRow { Index=1 }
DataGridViewRow { Index=2 }
DataGridViewRow { Index=3 }
DataGridViewRow { Index=4 }
DataGridViewRow { Index=5 }
DataGridViewRow { Index=6 }
DataGridViewRow { Index=7 }
DataGridViewRow { Index=8 }
DataGridViewRow { Index=9 }
DataGridViewRow { Index=10 }
DataGridViewRow { Index=11 }
DataGridViewRow { Index=12 }
DataGridViewRow { Index=13 }
DataGridViewRow { Index=14 }
DataGridViewRow { Index=15 }
DataGridViewRow { Index=16 }
DataGridViewRow { Index=17 }
DataGridViewRow { Index=18 }
DataGridViewRow { Index=19 }
DataGridViewRow { Index=20 }
DataGridViewRow { Index=21 }
DataGridViewRow { Index=22 }
DataGridViewRow { Index=23 }
DataGridViewRow { Index=24 }
DataGridViewRow { Index=25 }
DataGridViewRow { Index=26 }
DataGridViewRow { Index=27 }
DataGridViewRow { Index=28 }
DataGridViewRow { Index=29 }
DataGridViewRow { Index=30 }
DataGridViewRow { Index=31 }
DataGridViewRow { Index=32 }
DataGridViewRow { Index=33 }
DataGridViewRow { Index=34 }
DataGridViewRow { Index=35 }
DataGridViewRow { Index=36 }
DataGridViewRow { Index=37 }
DataGridViewRow { Index=38 }
DataGridViewRow { Index=39 }
DataGridViewRow { Index=40 }
DataGridViewRow { Index=41 }


SelectedCells()

returns me

DataGridViewTextBoxCell { ColumnIndex=0, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=1, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=2, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=3, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=4, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=5, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=6, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=7, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=8, RowIndex=3 }
DataGridViewTextBoxCell { ColumnIndex=9, RowIndex=3 }


Item property returns me N/A


DataSource()  property returns me



System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView
System.Data.DataRowView



So i am not able to see any property that will return me the text present in
a dataGridview Row.



I dont have any access to RFT and the installed version of rational Robot is
2003.06.00.436.008

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
LightInTheBox - Buy quality products at wholesale price