Micro Focus QTP (UFT) Forums
Double - Click on oracle Form field - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Double - Click on oracle Form field (/Thread-Double-Click-on-oracle-Form-field)



Double - Click on oracle Form field - razaqa - 10-15-2009

In QuickTest Pro having problem to record the double click event on the field of the form. I am using Oracle Add in to run it.
Please advise me suggestions.
Thanks


RE: Double - Click on oracle Form field - venkatbatchu - 10-15-2009

I am not sure about the oracle but i have implemented same kind of double click actions in my project which is Java
please find the below one
Code:
Browser("xxxxx").Page("xxxx").Frame("xxxx").WebElement("xxxxxx").fireevent("ondblclick")

So u can use fireevent("ondblclick") in ur script
Please let me if it works


RE: Double - Click on oracle Form field - razaqa - 10-15-2009

Thanks for you reply, your suggestion does not work for me because i am recording test for Oracle Form. My code in QuickTest Pro is

Code:
OracleFormWindow("Individual Display").OracleTabbedRegion("Other Info").OracleTable("B_OTHER_INFO_P").Click
this is good to click on the field.

But my requirement is double click to invoke the next form for data entry or update information in Oracle Form.

We are using QuickTest Version 10 and Oracle Adds-in. Please give us your suggestion to resolve this issue.


RE: Double - Click on oracle Form field - ki108 - 08-18-2010

I have an Oracle Form. In that form we have few User fields, where in if you doble click it will open another window and you have to enter some information in the fields. At times the new window has some user fields and we have to double click to open up another window to enter some fields. When we used QTP Ver 10 to record in such a form, it is not recording the doble click events. Hence when we run the recording to recreate the form entry it does not work.

I would very much appreciate if you could point me in the right direction with respect to this double click issue in Oracle Form. How to record double click event in Oracle Forms? The only way in the oracle form user field is to double click so that it opens another window.

Thanks in advance.
Kris


RE: Double - Click on oracle Form field - Ankur - 08-18-2010

Here I am assuming you have Oracle add-in installed. Can you try navigating to that field using tab key and then use keyboard shortcut to open another window?


RE: Double - Click on oracle Form field - ki108 - 08-19-2010

Yes. I have Oracle add-in, Java add-in, web add-in. The Oracle form user field opens another window only with a double click. None of the keyboard options work on that field.


RE: Double - Click on oracle Form field - Ankur - 08-19-2010

ok, Can you check with the dev team if dbl click is the only way possible to open a window? If yes, I think you may have to go for "SendKeys" method.


RE: Double - Click on oracle Form field - ki108 - 08-19-2010

Yes. I have checked with the third party software vendor and double click is the only way to open a window on the user defined fields of the Oracle form. What is the sendkeys method and how does one sendkeys for Mouse double click.


RE: Double - Click on oracle Form field - Ankur - 08-19-2010

See if somehow double click is possible using keyboard. SendKeys method is available in QTP documentation.


RE: Double - Click on oracle Form field - ki108 - 08-20-2010

I was able to use device replay for double click and code it successfully.
Here is the sample code -

Code:
OracleFormWindow("Maintain Orders").OracleTextField("User Fields").SetFocus
X=OracleFormWindow("Maintain Orders").OracleTextField("User Fields").GetROProperty("abs_x")
Y=OracleFormWindow("Maintain Orders").OracleTextField("User Fields").GetROProperty("abs_y")
Set Dr = CreateObject("Mercury.DeviceReplay")
Dr.MouseMove x, y
Wait 1
Dr.MouseDblClick x, y, 0
Thanks for your prompt responses.