Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

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.

Posted

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

Posted

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. 

Posted

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.

  • 1 month later...
  • 2 months later...
×
×
  • Create New...