Page 1 of 1

Using Edit MAsk with a dataset edit control

PostPosted: 10 Jun 2019 06:31
by loufeliz
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?

Re: Using Edit MAsk with a dataset edit control

PostPosted: 11 Jun 2019 09:16
by Alexander Bulei
Hi loufeliz,
Please check if you have the EditMask on Field, the JQEdit will use the EditMask if filled.

Best Regards.

Re: Using Edit MAsk with a dataset edit control

PostPosted: 13 Jun 2019 17:19
by loufeliz
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.

Re: Using Edit MAsk with a dataset edit control

PostPosted: 14 Jun 2019 09:00
by Alexander Bulei
Hi loufeliz,
It would be great...Thanks.

Best Regards.

Re: Using Edit MAsk with a dataset edit control

PostPosted: 01 Jul 2019 21:33
by loufeliz
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.

Re: Using Edit MAsk with a dataset edit control

PostPosted: 12 Jul 2019 22:03
by loufeliz
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,

Re: Using Edit MAsk with a dataset edit control

PostPosted: 15 Jul 2019 09:12
by Alexander Bulei
Hi loufeliz,

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

Anyway I will check it asap...

Best Regards.

Re: Using Edit MAsk with a dataset edit control

PostPosted: 17 Sep 2019 22:32
by loufeliz
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.

Re: Using Edit MAsk with a dataset edit control

PostPosted: 22 Sep 2019 08:49
by loufeliz
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

Re: Using Edit MAsk with a dataset edit control

PostPosted: 23 Sep 2019 09:37
by Alexander Bulei
Hi loufeliz,

Please send me the simple testcase.
TIA