Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click on calender on specific date.
#2
Solved: 7 Years, 7 Months ago
I have a function in my script where the calendar dates are in a web table. (Its an Ajax control)
In my function i will pass web table name, Date that's it it will click on the mentioned date.
Hope this might be helpful to you.


Code:
Public Function DateSelect(Temptable,Dt)
Tempflag = False
For r = 2 to Temptable.RowCount
For c = 2 to Temptable.ColumnCount(r)
      temp = Temptable.GetCellData(r,c)
If (strcomp(Trim(DataTable.Value("SiteVisitDate", DtlocalSheet)), temp, 1) = 0) Then
Temptable.ChildItem(r,c,"Link",0).Click
Tempflag = True
               Exit for
End If
Next

If Tempflag Then
Exit for
End If

Next
 
End Function
Reply


Messages In This Thread
RE: Click on calender on specific date. - by nistalaramesh - 12-02-2015, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Find specific records in a SwfTreeView on different node levels lotos 0 2,213 10-06-2017, 05:14 AM
Last Post: lotos
  How to validate date in an application should not accept less than future date. ruchi03 1 3,474 10-08-2014, 05:54 PM
Last Post: rajkumarsm
  Date Picker Issue - Unable to select date link dynamically rajkumarsm 1 4,991 09-20-2014, 09:31 AM
Last Post: rajkumarsm
  VB SCRIPT to click on specific links on webpage and store related data ACCBAJPA 1 9,831 04-02-2013, 01:33 PM
Last Post: ACCBAJPA
  How to get a specific image inside a webtable grave711 7 8,500 05-29-2012, 10:44 AM
Last Post: grave711

Forum Jump:


Users browsing this thread: 1 Guest(s)