Micro Focus QTP (UFT) Forums
usage of Inputbox in the QTP script - 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: usage of Inputbox in the QTP script (/Thread-usage-of-Inputbox-in-the-QTP-script)



usage of Inputbox in the QTP script - karraaruna - 01-14-2011

Hi,
I could able to enter date in the input box but it is not assigned into the application whilte running the script..

Here it follows

Code:
Dim inputVariable
inputVariable=InputBox("Please Enter the End Date")
msgbox(inputvariable)

JavaWindow("User Information System").JavaInternalFrame("Valid values for Status").JavaTable("Table[]").SetCellData "1","7",inputVariable
but nothing is assigned to the mentioned column.
could you please tell me how can I do this

thanks very much in advance.


RE: usage of Inputbox in the QTP script - supputuri - 01-15-2011

Hi,

Please click on the specified cell before entering the data.

I think that should resolve your issue, if not please place the screen shots of the object Spy on the object and the app area. So that we can find out the root cause and provide the sol'n.