Page 1 of 1

selector: cannot press on current year/month/day

Posted: Mon Feb 15, 2016 8:33 am
by EJLD

Hi there, I am using the selector to make a date.
in fact, there are 3 selectors:
. one for the yyyy
. one for the mm
. and another for the dd
i hv a strange behavior.
when pressing on 2016, it does get that selection,
same when pressing on Feb, as it is Feb now ...
same again for the day, cannot have 15th if today is 15th
I hv to press on 2017, or Mar first, then come back to the expected date to be selected.

my app is on share
name : collect4good

login and pw will be provided via email to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a

thks in advance
Eric


selector: cannot press on current year/month/day

Posted: Mon Feb 15, 2016 9:16 am
by Serhii Kulibaba

Hello,

Please clarify, do you use any custom JS on these components? Maybe it is better to use datepicker instead of three separated select components?


selector: cannot press on current year/month/day

Posted: Mon Feb 15, 2016 11:33 am
by EJLD

no the selector it's populated in static from the builder UI.

some time ago I tried the datePicker it was even less convenient. and I need to specify time. so layout is simpler with selectors.

wld you be kind enough to check why it behaves such a way ?

you can do it simply from the destop browser viewer, it already bug from there.

thk you in advance.


selector: cannot press on current year/month/day

Posted: Wed Feb 17, 2016 11:26 am
by Serhii Kulibaba

Yes, I can reproduce it. It looks like problems with some event handlers. Please check them.

I've disabled all event handlers on that page: http://prntscr.com/a4dulo
After that it worked fine: http://prntscr.com/a4dua6


selector: cannot press on current year/month/day

Posted: Wed Feb 17, 2016 12:19 pm
by EJLD

Thks for the direction Sergiy. I'll look into it


selector: cannot press on current year/month/day

Posted: Sat Feb 20, 2016 12:29 pm
by EJLD

indeed, the matter comes from the fact I'd like to pre select the today date.
however, I tried several codes and it doesn't work:

onload event from the panel =

$("#RealTime100_scheduler_RTschedSelectYear-button option[value="+yyyy+"]").attr('selected','selected');
$("#RealTime100_scheduler_RTschedSelectMonth-button option[value='"+mm+"']").attr('selected','selected');
$("#RealTime100_scheduler_RTschedSelectDay-button option[value='"+dd+"']").attr('selected','selected');

or

Appery("RTschedSelectYear").val(yyyy);
Appery("RTschedSelectMonth").val(mm);
Appery("RTschedSelectDay").val(dd);

but none of both sets the date,
and the latter blocks the selector to the current month as you (Sergiy) cld experience.

any idea what code shall I use ?

thks in advance
Eric


selector: cannot press on current year/month/day

Posted: Tue Feb 23, 2016 8:28 pm
by Serhii Kulibaba

Please use event "page show" instead of "load" for that. And add calling of the method refresh():
preAppery("RTschedSelectYear").val(yyyy).refresh();
Appery("RTschedSelectMonth").val(mm).refresh();
Appery("RTschedSelectDay").val(dd).refresh();/pre


selector: cannot press on current year/month/day

Posted: Wed Feb 24, 2016 5:00 am
by EJLD

thk you