Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to know how to determine a field is enterable
#1
Not Solved
Could you please show me how to determine if a field is enterable or updateable. I'm using QTP v10 for an Oracle application.

I want to check if the field is enterable so that I enter some inf otherwise skip that field. I have this piece of code, but it does not work correctly, because the field is enable (the cursor can go there) but it's protected from updating by the application.

Code:
If OracleFormWindow("XXXX").OracleTextField("YYYYYY").GetROProperty("enabled") = True Then
   OracleFormWindow("XXXX").OracleTextField("YYYYYY").Enter "ABC"
End If

Any suggestion is greatly appreciated.
Thanks.
Reply
#2
Not Solved
There is an object attribute named "isContentEditable" that you might try using. Something like this:

Code:
If OracleFormWindow("XXXX").OracleTextField("YYYYYY").Object.IsContentEditable Then
    OracleFormWindow("XXXX").OracleTextField("YYYYYY").Enter "ABC"
End If
Reply
#3
Not Solved
I tried the suggestion but got the error "Object does not support this property or method". I suspect this property does not belong to the OracleTextField object.
Am I missing anything?
I'm a beginer with VB script. If no property/method avaible, any idea to work around.

Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  getting the value from the field learning 0 1,048 03-19-2019, 09:13 AM
Last Post: learning
  Password field kumar19041980 0 2,776 09-05-2012, 03:33 PM
Last Post: kumar19041980

Forum Jump:


Users browsing this thread: 1 Guest(s)