#1 2017-06-27 04:04:44

reg4app
Member
Registered: 2016-05-16
Posts: 147

'Date' Control does not show popup calendar?

I test the 'Date' Control
It seems in edge(win10) and firfox(53.0.3) ,There is no popup calendar
and Chrome is OK


Joshua.Y

Offline

#2 2017-06-27 09:15:21

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: 'Date' Control does not show popup calendar?

Hello Joshua,

The "Date" input control depend of the vendor's implementation: it's relatively modern and not all the vendors implement it in the same way. You can try with something like the implemented in this sample. If your application's target is the mobile, probably you can use the Date input control without problems.

Another possible way is to use certain "custom date picker" like the implemented in this sample: DatePicker.zip, or, in my opinion, even better, use three Select controls for the Year, Month and Day, in a similar way that what you can see in the Datetime app sample included in App Builder. The "three select inputs" solution works fine in all browsers and platforms.

P.S. Here is another sample about a possible "date picker dialog" made with three Select controls and a app's modal view: DateDialog.zip

Online

#3 2017-07-03 03:07:30

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: 'Date' Control does not show popup calendar?

In 'DatePicker.zip'

How can I set the 'datePickerValue' with a HttpClient.Response??

I mean I want to set one of the HttpClient.Response's Itemvalue to datePickerValue


Joshua.Y

Offline

#4 2017-07-03 07:43:44

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: 'Date' Control does not show popup calendar?

Hello Joshua,

I think you are looking for the "datePickerValue" variable. Please, take a look at the sample NewView1's Show event, in which you can see how that variable is setup with a Date Javascript value. You must use that variable to specify a value for the "datepicker", probably an string comming from an HTTP call's response.

Look more about Javascript's Dates here, for example.

Online

#5 2017-07-03 10:27:29

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: 'Date' Control does not show popup calendar?

Yes,something like this will get it done

StartJS
  $rootScope.datePickerValue = new Date($rootScope.variablename);

Thanks


Joshua.Y

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.