CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Strange behaviour in TIWCGJQMEdit

General discussion

by Soren SDF » 25 Nov 2013 11:40

Hi again.

I want to use TIWCGJQMEdit to display and edit values in my DB.
At render time i retrieve the value like this, TheEdit.Text:=TheDBField.AsString
It works as expected unless i set the EditType to jqmetNumber then the edit just shows 0. This even when i have an actual numerical value in the DB.

T.I.A.
Sören A
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Soren SDF » 25 Nov 2013 11:43

Oh.
I just realised I can use TIWCGJQMEditTypeNumberOptions(ED2.JQMEditOptions.EditTypeOptions).Value:=TheDBField.Value
I works but is not really intuitive.

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 25 Nov 2013 11:44

Hi Soren,

Soren SDF wrote:Hi again.

I want to use TIWCGJQMEdit to display and edit values in my DB.
At render time i retrieve the value like this, TheEdit.Text:=TheDBField.AsString
It works as expected unless i set the EditType to jqmetNumber then the edit just shows 0. This even when i have an actual numerical value in the DB.

T.I.A.
Sören A


It's happens because the Text property is not linked to EditTypeOptions(TIWCGJQMEditTypeNumberOptions).Value

We will fix it at next release.

Thanks.

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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Soren SDF » 25 Nov 2013 11:52

Great.
But i just found out the hard way that the value needs to be an integer. I need float.

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 25 Nov 2013 17:13

Hi Soren,

Added support for float.

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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General

Who is online

Users browsing this forum: No registered users and 23 guests

Contact Us.