Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click on calender on specific date.
#1
Solved: 7 Years, 6 Months, 2 Weeks ago
I had a calender in application
i will send parameter year,month and date based on the parameters the date should be selected in the calender icon.

can any one provide syntax.


//my calendar icon looks like windows calendar.desktop righside bottom.
Reply
#2
Solved: 7 Years, 6 Months, 2 Weeks 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


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Find specific records in a SwfTreeView on different node levels lotos 0 2,199 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,459 10-08-2014, 05:54 PM
Last Post: rajkumarsm
  Date Picker Issue - Unable to select date link dynamically rajkumarsm 1 4,973 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,806 04-02-2013, 01:33 PM
Last Post: ACCBAJPA
  How to get a specific image inside a webtable grave711 7 8,479 05-29-2012, 10:44 AM
Last Post: grave711

Forum Jump:


Users browsing this thread: 1 Guest(s)