rasaliad Posted November 16, 2016 Posted November 16, 2016 Hi Folks How is the bet way to pick the time in a mobile form, there is a DbDatePicker, but i not find a DBTimePicker. How have you done it. Thanks for the help. Liriano
Sherzod Posted November 16, 2016 Posted November 16, 2016 Hi, For now can you try analyze this ?!: http://forums.unigui.com/index.php?/topic/5760-datetimepicker-for-sencha-touch/ Best regards. 1
rasaliad Posted November 16, 2016 Author Posted November 16, 2016 Hi, For now can you try analyze this ?!: http://forums.unigui.com/index.php?/topic/5760-datetimepicker-for-sencha-touch/ Best regards. Thanks DD, It Works!!,
rasaliad Posted November 16, 2016 Author Posted November 16, 2016 Hello Delphi Developer My Application is a Hybrid one, then after add the files Datetime.js and DateTImePicker.js to the files folder, now the desktop App is not running because the following files is not found: From the log file: [HandleFileRequest[192.168.1.37]]:File not found: C:\Program Files\FMSoft\Framework\unigui\ext-4.2.5.1763\src\DateExtras.js [HandleFileRequest[192.168.1.37]]:File not found: C:\Program Files\FMSoft\Framework\unigui\ext-4.2.5.1763\src\field\Text.js [HandleFileRequest[192.168.1.37]]:File not found: C:\Program Files\FMSoft\Framework\unigui\ext-4.2.5.1763\src\ux\picker\DateTime.js My question is, there is not problem if I copy this file to the corresponden folders? or What do you suggest to me? Thanks in advanced
Sherzod Posted November 17, 2016 Posted November 17, 2016 Hi, Try this: 1. Remove these files from CustomFiles 2. UniMainModule -> uses ... uniGUIClasses, uniGUITypes; procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject); begin UniAddJSLibrary('files/DateTime.js', False, [upoPlatformMobile]); UniAddJSLibrary('files/DateTimePicker.js', False, [upoPlatformMobile]); end; Best regards.
rasaliad Posted November 17, 2016 Author Posted November 17, 2016 Hi, Try this: 1. Remove these files from CustomFiles 2. UniMainModule -> uses ... uniGUIClasses, uniGUITypes; procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject); begin UniAddJSLibrary('files/DateTime.js', False, [upoPlatformMobile]); UniAddJSLibrary('files/DateTimePicker.js', False, [upoPlatformMobile]); end; Best regards. Hi DD!!!! Thank you, very, very much. Now All is working
rasaliad Posted November 17, 2016 Author Posted November 17, 2016 Sorry DD, But now I see there is allway display time 0:00 (date format dd/MM/yyyy H:i), Why?, what I am doing wrong?. Thanks for your help.
Sherzod Posted November 18, 2016 Posted November 18, 2016 Hi, Because the UnimDatePicker not for the "time," you can use this "fast" solution: procedure TMainmForm.UnimFormReady(Sender: TObject); begin // 2016/11/18 22:10 UniSession.AddJS(MainmForm.UnimDatePicker1.JSName +'.setValue(new Date(2016,10,18,22,10))'); end; Best regards.
khuemmeler Posted January 3, 2017 Posted January 3, 2017 Hi, after setting date and time: How can I read the time information? Best regards!
Sherzod Posted March 7, 2017 Posted March 7, 2017 Hi, You can try this approach: http://forums.unigui.com/index.php?/topic/5760-datetimepicker-for-sencha-touch/&do=findComment&comment=41359 Best regards.
Recommended Posts