Jump to content


Photo

How to Pick a Time in Mobile

Mobile

  • Please log in to reply
10 replies to this topic

#1 rasaliad

rasaliad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 101 posts
  • LocationRepublica Dominicana

Posted 16 November 2016 - 11:51 AM

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


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3023 posts

Posted 16 November 2016 - 12:10 PM

Hi,

 

For now can you try analyze this ?!:

http://forums.unigui...r-sencha-touch/

 

Best regards.


  • 1

#3 rasaliad

rasaliad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 101 posts
  • LocationRepublica Dominicana

Posted 16 November 2016 - 01:45 PM

Hi,

 

For now can you try analyze this ?!:

http://forums.unigui...r-sencha-touch/

 

Best regards.

 

Thanks DD,

 

It Works!!, 


  • 0

#4 rasaliad

rasaliad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 101 posts
  • LocationRepublica Dominicana

Posted 16 November 2016 - 07:32 PM

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

  • 0

#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3023 posts

Posted 17 November 2016 - 01:06 AM

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.


  • 0

#6 rasaliad

rasaliad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 101 posts
  • LocationRepublica Dominicana

Posted 17 November 2016 - 02:39 AM

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


  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3023 posts

Posted 17 November 2016 - 03:12 AM

You are welcome!


  • 0

#8 rasaliad

rasaliad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 101 posts
  • LocationRepublica Dominicana

Posted 17 November 2016 - 03:43 AM

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. 


  • 0

#9 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3023 posts

Posted 18 November 2016 - 05:18 PM

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.


  • 0

#10 khuemmeler

khuemmeler

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 03 January 2017 - 10:07 PM

Hi,
after setting date and time: How can I read the time information?
Best regards!
  • 0

#11 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3023 posts

Posted 07 March 2017 - 03:35 AM

Hi,

 

You can try this approach:

http://forums.unigui...uch/#entry41359

 

Best regards.


  • 0





Also tagged with one or more of these keywords: Mobile

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users