EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

selector: cannot press on current year/month/day

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

selector: cannot press on current year/month/day

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?

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

selector: cannot press on current year/month/day

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

selector: cannot press on current year/month/day

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

selector: cannot press on current year/month/day

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

selector: cannot press on current year/month/day

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

selector: cannot press on current year/month/day

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

selector: cannot press on current year/month/day

thk you

Return to “Issues”