CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Maxlength in jqEdit issue

by Wissem_B » 21 Aug 2017 15:15

Hi There,
Max-Length property of TIWCGJQEdit in delphi XE 2 is not working properly in design environment

For example if you bind a db widestring field with length of 20 characters as datalink, you can enter max length of 20 characters and it will work, but if you save your unit and reopen it,
the setting will be lost everytime and default value 0 is reset. In case of using smaller or higher value in max length it will work, but exact field size is not possible.


Example on dfm settings:

1. Setting value for max length:

object IWCGJQEdit1: TIWCGJQEdit
Left = 328
Top = 70
Width = 121
Height = 21
Version = '1.0'
DataLink.DataSource = DM.dsGet_RelationEinzel
DataLink.FieldName = 'Kostenstelle'
Enabled = False
MaxLength = 20
ReadOnly = True
ScriptEvents = <>
end

2. After closing and reopen unit the same field will shown as below without maxlength:

object IWCGJQEdit1: TIWCGJQEdit
Left = 328
Top = 70
Width = 121
Height = 21
Version = '1.0'
DataLink.DataSource = DM.dsGet_RelationEinzel
DataLink.FieldName = 'Kostenstelle'
Enabled = False
ReadOnly = True
ScriptEvents = <>
end


In case of setting value to 21 in first step the setting will still be there on reopen:

object IWCGJQEdit1: TIWCGJQEdit
Left = 328
Top = 70
Width = 121
Height = 21
Version = '1.0'
DataLink.DataSource = DM.dsGet_RelationEinzel
DataLink.FieldName = 'Kostenstelle'
Enabled = False
MaxLength = 21
ReadOnly = True
ScriptEvents = <>
end
Wissem_B
 
Posts: 32
Joined: 07 Aug 2014 07:36

by Alexander Bulei » 23 Aug 2017 09:37

Hi Wissem_B,

The issue with Maxlength is fixed in next beta build.
Thank you.

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 Wissem_B » 18 Sep 2017 13:25

Hi there,
i installed the new version 4.0.1.64 and 4.0.1. 69
aber it is still not working!
please take a look again.
Thank you
Wissem_B
 
Posts: 32
Joined: 07 Aug 2014 07:36

by Alexander Bulei » 18 Sep 2017 18:09

Hi Wissem_B,

When you have DataLink assigned, and DB field is string, the Maxlength property will take the value from Field.Size automatically.

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


Return to JQEdit

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.