Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Choosing Date on Calendar Web Control
#1
Greetings,

While choosing date on a web control calendar, the QM program chooses the first date found on the calendar.
That is if the calendar is showing December 2016 dates, there would be November 2016 last week dates also showing up.
If the program has to choose today's date (29 December 2016), it chooses the first '29' on the calendar, which is 29 November 2016.
How to make the program understand to choose 29th December 2016 instead.

Right now the program first chooses the date from Excel and obtains just the day as below:

Macro RO Sales VISTA - Current
Code:
Copy      Help
,ARRAY(str) varDate
,es.CellsToArray(varDate "sel")
,str vDate=varDate
,str e5.left(vDate 2)


...and then chooses the date on the web control calendar as shown below:

Macro RO Sales VISTA - Current
Code:
Copy      Help
,Htm e47=htm("BUTTON" e5 "" w3 "0" 85 0x21 50)
,e47.Click;0.15

Best Regards,
Philip
Best Regards,
Philip
#2
Need a web calendar control URL. If not possible, need screenshot.
#3
Try:
Let htm find date "1" and then get another day using the navig parameter.
If it is difficult with htm, try to use accessible objects.

,Htm e47=htm("BUTTON" "1" "" w3 "0" 85 0x21 50 val(e5)-1)

Probably this will not work because there are multiple rows.
#4
Try:

Macro Macro2746
Code:
Copy      Help
int reverse=iif(val(e5)>=15 128 0)
Acc u.Find(w3 "BUTTON" e5 "" 0x3001|reverse)
u.DoDefaultAction; 0.15
#5
Thanks Gintaras.
This last solution seems to have worked so far.

Best Regards,
Philip
Best Regards,
Philip


Forum Jump:


Users browsing this thread: 1 Guest(s)