CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Initilizing JQMMobiScroll2

by Omega8 » 10 May 2016 17:43

How do you initilize this component when it is in jqmspDate mode. For example how have it so that when the the component shows
it starts with Dec 15 2018.

Thanks

CI
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Alexander Bulei » 10 May 2016 18:02

Hi,

Check the JQMCoreOptions.Value, the date should be in PresetOptions.DateFormat.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Omega8 » 10 May 2016 21:10

Thanks.

I have the following code:
Code: Select all
          FCCExpirationDate:=Now;
          with IWExpirationScroll, JQMCoreOptions, TIWCGJQMMobiScroll2DateOptions(PresetOptions) do
               begin
               Separator :='.';
               DateFormat:='dd.mm.yy';             
               Value:=FormatDateTime(DateFormat,FCCExpirationDate);
               end;
         This raises and exception: "EConvertError 10.05.16 is not a valid date"


Any ideas?

Thanks
CI
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Alexander Bulei » 11 May 2016 09:17

Hi,

Debug your application.
Your code works fine here.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Omega8 » 11 May 2016 14:09

OK I did the following:

1) Created a new application.
2) Set the main form as your plain vanilla CG Mobile Page
3) Created a second CG Ajax Mobile Page.
4) Placed a button on main form to start the Ajax Page.

In both forms I used the same code to initialize the JQMMobiScroll2. It turns out that the in the CG Mobile Page, the component could be
properly initialized. In the Ajax form however I still get the EConvertError.

When you guys designed this, did you test it on both types of pages? AM I missing something?

Thanks
CI
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42


Return to JQMMobiScroll2

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.