Jump to content

How to Pick a Time in Mobile


rasaliad
 Share

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
 Share

×
×
  • Create New...