CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Using Edit MAsk with a dataset edit control

by loufeliz » 10 Jun 2019 06:31

Hello,

I am using the TIWCGJQEdit control with a dataset, but I am not able to get the Mask to work. If I use a field not connected to dataset it works fine. Is it possible to use with a dataset bound control?
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by Alexander Bulei » 11 Jun 2019 09:16

Hi loufeliz,
Please check if you have the EditMask on Field, the JQEdit will use the EditMask if filled.

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 loufeliz » 13 Jun 2019 17:19

I updated the field editmask to the field in the dataset and still nothing. I tried with and without JQEdit.MaskOptions.Mask set as well.

The Edit mast only displays when I am not connecting JQEdit to a datasource.

I have tried dropping a new JQEdit to rule out any other options I may have updated. and still not working.

I must be missing some additional options somewhere. I will try and create simple demo and share here.
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by Alexander Bulei » 14 Jun 2019 09:00

Hi loufeliz,
It would be great...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: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by loufeliz » 01 Jul 2019 21:33

I started from scratch and I was able to get it working on a different project with correct value being saved to table with formatting.
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by loufeliz » 12 Jul 2019 22:03

I was able to get mask to work fine with a data bound CGEdit control, but only if Datalink.StateChangeOperation was set to scoEnable.

I normally set my data bound controls scoReadOnly, so value is not greyed when field is being viewed and not in Edit mode.

So for now, I have a field with scoReadOnly on top and when user edits record I hid it and show the feld underneath that is scoEnable. I just hide show the appropriate field based on current record state EDIT/Insert etc.....

I just wonder if there is a better work around for this? Any ideas?

Regards,
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by Alexander Bulei » 15 Jul 2019 09:12

Hi loufeliz,

I think it's because jquery plugin checks the state of input...

Anyway I will check it asap...

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 loufeliz » 17 Sep 2019 22:32

I was looking atht his just now and was thinking if I use StateChange value of scoEnable, and the StateEdicCSS is cg-datalink-editing, what css value is used when it is not in edit mode? Perhaps there should be defauld display css settting just like there is a StateEditCSS property.

I am just gong to leave my phone number fields with scoEnable for now until I can figure out a way to have the non edit font display darker.
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by loufeliz » 22 Sep 2019 08:49

Another twist in using Mask on JQEdit. I have a form with it working fine, the control is in a JQDialog and it gets mask from dataset and it works fine. On a different form where JQEdit is on a tab page, nothing. I am probably just going to not use databound conrols on some forms and just determine change in value. I am more frustrated as I spend a few hours trying various combinations and I am back to where I started. I wish the MASK could just work as simple as it sounds.

Anyone else have good success with Masked edit using JQEdit?

- Lou
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by Alexander Bulei » 23 Sep 2019 09:37

Hi loufeliz,

Please send me the simple testcase.
TIA
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 General

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.