Micro Focus QTP (UFT) Forums
Write to DataTable - 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: Write to DataTable (/Thread-Write-to-DataTable)

Pages: 1 2


RE: Write to DataTable - bgold01 - 04-24-2012

Special Code is defined as a TeField in the Object Repository under screen2, but I still get no value in vb_text. I put a print statement in there to confirm that. does the vb_text have to be defined somewhere? Is there somewhere other than the Oject Repository I need to define Special Code?

Thanks!


RE: Write to DataTable - sshukla12 - 04-24-2012

Hi,

Could you please provide a snapshot of ur OR where this special code resides, so that it can be easy for me to rectify the changes.

Regards,
Sankalp


RE: Write to DataTable - bgold01 - 04-24-2012

Is this enough?


RE: Write to DataTable - sshukla12 - 04-25-2012

Hi,
Could u use this below code:
Code:
vb_text=TeWindow("Window").TeScreen("screen2").TeEdit(Special Code).GetROProperty("xx")

I really don't now with which name special code txt box will be declared it might be Teedit or something else u can use the correct one and under GetRoProperty use the property name like text or whatever u want to retrive, use object spy to identify the property u want to get.

Regards,
Sabkalp


RE: Write to DataTable - hamzaz - 04-26-2012

Thanks for your response, I have set all the values to Datatable,
now i am working on next task.

I have set the values to datatable, now I want to use these values to delete some links from the page.
now the thing is

Datatable values
1
2
3
4

I need to delete 1 2 3 4 number link from next page.
I have got the innertext of the link 1 2 3 4

now I wonder how can i do it?
If else conditions?


RE: Write to DataTable - srikanthqtp - 04-29-2012

Hi

Using the below code you can capture the value if particular field

Code:
vb_text=TeWindow("TeWindow").TeScreen("screen2").TeField("field id:=").Text
Enter the Field Id which you want to capture

Now you can store the value in Datatable. (vb_text)

Please let me if it is not working..