Micro Focus QTP (UFT) Forums
Unable to set the Start date for SwfCalendar control-using SetDate or Type method - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Unable to set the Start date for SwfCalendar control-using SetDate or Type method (/Thread-Unable-to-set-the-Start-date-for-SwfCalendar-control-using-SetDate-or-Type-method)



Unable to set the Start date for SwfCalendar control-using SetDate or Type method - mahbub798 - 03-23-2014

Hi,

I am trying to set the Start Date in my application (.net client) but the script ends up setting the random date when I use Type method. For some reason, If I use SetDate it is setting the date in the calender, but it is not visible after saving the screen. So, SetDate method setting the correct date ,but not saving to the application and it is not visible since it is not saved. Whereas Type method setting random date and save in the application and visible. Is there any solution? Thanks.

Code:
SwfWindow("Nex.*").SwfCalendar("dtpStartDate").SetDate "2-Apr-2009"
or
SwfWindow("Nex.*").SwfCalendar("dtpStartDate").Type "4/2/2009"