Micro Focus QTP (UFT) Forums
How do I paste a value into a text box that I created a checkpoint for? - 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: How do I paste a value into a text box that I created a checkpoint for? (/Thread-How-do-I-paste-a-value-into-a-text-box-that-I-created-a-checkpoint-for)



How do I paste a value into a text box that I created a checkpoint for? - egun - 07-16-2009

Code:
Browser("Vision").Page("Vision").WebTable("#").Output CheckPoint("ClaimNum2")

I want to paste the run-time value that is contained in 'ClaimNum2' into a text box on the same page. I'm VERY new to QTP, just trying to get a grasp on the product.

Thanks!


RE: How do I paste a value into a text box that I created a checkpoint for? - QTPian - 07-16-2009

Hi egun,

It is as similar as setting a value in a text box from a datatable. Here in your scenario a runtime datatable is created which has the text output value, you can use "Set Datatable("column", dtglobalsheet)" to populate your text box with the runtime value.
Have a look at the following code.
--------------
'Here the output value is saved in the Global sheet of Runtime Datatable.
Code:
Browser("Vision").Page("Vision").WebTable("#").Output CheckPoint("ClaimNum2") 'The value will be present in the runtime datatable (Global sheet)
Browser("Vision").Page("Vision").WebEdit("Visiontext").Set Datatable("vision_text", dtGlobalSheet)
----------------
Hope this helps!

Thanks,