Page 1 of 1

Initilizing JQMMobiScroll2

PostPosted: 10 May 2016 17:43
by Omega8
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

Re: Initilizing JQMMobiScroll2

PostPosted: 10 May 2016 18:02
by Alexander Bulei
Hi,

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

Best Regards.

Re: Initilizing JQMMobiScroll2

PostPosted: 10 May 2016 21:10
by Omega8
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

Re: Initilizing JQMMobiScroll2

PostPosted: 11 May 2016 09:17
by Alexander Bulei
Hi,

Debug your application.
Your code works fine here.

Best Regards.

Re: Initilizing JQMMobiScroll2

PostPosted: 11 May 2016 14:09
by Omega8
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