Page 1 of 1

Date Always 0

PostPosted: 16 Jun 2014 22:37
by jandekkers
When JQDatePickerOptions.OnSelect.Ajax = True
IWCGJQDatePickerImportforPYE.Date is always 0

When JQDatePickerOptions.OnSelect.Ajax = False
IWCGJQDatePickerImportforPYE.Date is Correct

JQDatePickerOptions is placed on a Dialog


Code: Select all
object IWCGJQDatePickerImportforPYE: TIWCGJQDatePicker
  Left = 250
  Top = 36
  Width = 121
  Height = 21
  TabOrder = 22
  Version = '1.0'
  ZIndex = 6001
  Caption = ''
  JQDatePickerOptions.ChangeMonth = True
  JQDatePickerOptions.ChangeYear = True
  JQDatePickerOptions.DateFormat = 'mm/dd/yyyy'
  JQDatePickerOptions.MinDate = '12/31/2012'
  JQDatePickerOptions.OnSelect.Ajax = False
  JQDatePickerOptions.OnSelect.OnEvent = IWCGJQDatePickerImportforPYEJQDatePickerOptionsSelect
  JQDatePickerOptions.ShowPopUpOnReadOnly = True
  ReadOnly = True
end


Code with Dialog:

Code: Select all
object IWRegionUpload: TIWCGJQDialog
  Left = 278
  Top = 176
  Width = 395
  Height = 209
  Visible = False
  RenderInvisibleControls = True
  TabOrder = 20
  Version = '1.0'
  ZIndex = 6000
  JQDialogOptions.AutoOpen = False
  JQDialogOptions.Height = 209
  JQDialogOptions.Width = 395
  JQDialogOptions.zIndex = 6000
  JQDialogOptions.OnClose.OnEvent = IWRegionUploadJQDialogOptionsClose
  object IWCGJQDatePickerImportforPYE: TIWCGJQDatePicker
    Left = 250
    Top = 36
    Width = 121
    Height = 21
    TabOrder = 22
    Version = '1.0'
    ZIndex = 6001
    Caption = ''
    JQDatePickerOptions.ChangeMonth = True
    JQDatePickerOptions.ChangeYear = True
    JQDatePickerOptions.DateFormat = 'mm/dd/yyyy'
    JQDatePickerOptions.MinDate = '12/31/2012'
    JQDatePickerOptions.OnSelect.Ajax = False
    JQDatePickerOptions.OnSelect.OnEvent = IWCGJQDatePickerImportforPYEJQDatePickerOptionsSelect
    JQDatePickerOptions.ShowPopUpOnReadOnly = True
    ReadOnly = True
  end
end

Re: Date Always 0

PostPosted: 17 Jun 2014 10:55
by Jorge Sousa
Hello

We cannot reproduce this.

Please submit a test case.

Btw, what IW and cg version are you using?

Re: Date Always 0

PostPosted: 17 Jun 2014 23:17
by jandekkers
IntraWeb Version: 14.0.31
I use this package IWCGJQComps_140_190.bpi if that's the version indicator

Re: Date Always 0

PostPosted: 18 Jun 2014 10:16
by Jorge Sousa
The Cgdevtools version, you can see it if you select Register in CgDevTools IDE menu, is the title of the dialog.

Re: Date Always 0

PostPosted: 18 Jun 2014 18:52
by jandekkers
Ok, that 2.1.0.3653

Re: Date Always 0

PostPosted: 19 Jun 2014 09:48
by Jorge Sousa
Hi

Ok thanks,

then we keep not knowing how to reproduce .

Can you do it in a simple test case?

Because if is another thing that only happens in your project, it's because it might have code not compatible with cgdevtools components.