Micro Focus QTP (UFT) Forums
Issues with Dates - 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: Issues with Dates (/Thread-Issues-with-Dates)



Issues with Dates - vijaya16 - 11-19-2009

Hello All,

Please help me out in this code .I have two feilds in my Seibel Web App'n Agreement StartDate,Agreement EndDate and in the datatable i have mentioned values under each of them as '01012010,'31122012.
While running the code the Agreement Start Date[01012010]gets placed into the Agreement Start Date field while running the second line of code the value '31122012 also gets placed in Agreemetn Start Date Field instead it should get placed in Agreement End Date field?Pls suggest.this is urgent.

Code:
SiebApplication("Siebel Media Systest 10.9.2").SiebScreen("Accounts").SiebView("Account Opportunities").SiebApplet("Opportunities").SiebList("List").SiebCalendar("Agreement Start Date").SetText DataTable("Agreement_StartDate", dtGlobalSheet)
SiebApplication("Siebel Media Systest 10.9.2").SiebScreen("Accounts").SiebView("Account Opportunities").SiebApplet("Opportunities").SiebList("List").SiebCalendar("Agreement End Date").SetText DataTable("Agreement_EndDate", dtGlobalSheet)



RE: Issues with Dates - venkatbatchu - 11-20-2009

Hi,
Use wait(1) after passing the start date to "start date" field then pass the end date value to "end date" field

Thanks,
Venkat.Batchu.


RE: Issues with Dates - v_selvam - 11-20-2009

do a 'setfocus' on the control and then try