Micro Focus QTP (UFT) Forums
'Object Disabled Error while using DP - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: 'Object Disabled Error while using DP (/Thread-Object-Disabled-Error-while-using-DP)



'Object Disabled Error while using DP - Uma - 10-13-2011

Hi,
I have a field OffMarketDate and I have a script like this,
Code:
Browser(" ").Page(" ").WebEdit("name:=947").Set DataTable("OffMarketDate","xyzInfo")
but it shows Object is disabled error.
I used the following script according to our forum Advice

Code:
Dim Value1
Value1=Browser("").Page("").WebEdit("name:=947").GetROProperty("disabled")
Print Value1
It returns 1 for the variable Value1
So is it editable or not?
Any help?
Thanks
Uma


RE: 'Object Disabled Error while using DP - v.swaminathan - 10-17-2011

Hi Uma,
Please try the below code and check if it works well..

Code:
Browser(" ").Page(" ").WebEdit("name:=947").Object.readonly = False
Browser(" ").Page(" ").WebEdit("name:=947").Set DataTable("OffMarketDate","xyzInfo")