1. Richard Granquist
  2. PowerBuilder
  3. Thursday, 15 April 2021 21:43 PM UTC

Hello,

I have a pop up window to prompt user to enter in "Customer Name" to search on.

If I use "Edit Mask as my field type, when I type in "tst customer", then try to enter insert "e" in front of "s" the letter to correct my spelling mistake system replaces the character vs. moving the string to the right.  Insert key does not work to allow letter to be inserted either.

In other words, I can't correct a spelling mistake without re-typing the whole word.

Behavior seems to have changed since moving to R3

Behavior works as it should with SLE control.

Thanks in advance.


Rick

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 16 April 2021 13:49 PM UTC
  2. PowerBuilder
  3. # 1

Here's my initial version of TinyMCE as an edit control.

It still lacks A LOT, but I'll be posting once it gets better and more complete.

I'll probably post it on GitHub or Google drive once it gets to be more functional.

regards

(see attached)

Attachments (1)
Comment
  1. Miguel Leeuwe
  2. Friday, 16 April 2021 13:49 PM UTC
this needs pb 2019 R3 btw
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 16 April 2021 14:44 PM UTC
lol, sorry wrong post
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 16 April 2021 08:44 AM UTC
  2. PowerBuilder
  3. # 2

Hi Rick,

Why would you use an editmask in the first place on an alfanumeric field?

regards.

Comment
  1. Richard Granquist
  2. Friday, 16 April 2021 13:45 PM UTC
Was done 20 years ago, still using the same pop up. Solution would be to switch out to sle control.
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 16 April 2021 13:46 PM UTC
Gotcha!
  1. Helpful
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Friday, 16 April 2021 07:52 AM UTC
  2. PowerBuilder
  3. # 3

Hi  Richard,

 

I tested with an EditMask control, the MaskDataType property is set to 'StringMask!' and Mask property is set to 'xxxxxxxx', and I reproduced what you described.

 

However, when I verified with PB 8/9/11.5/12.6 /2017 R3/2019 R3, I got the same behavior as well. So this should be of PB original design and we didn’t change any logic of it in PB 2019 R3.

 

What’s the version you used before? Did it have different behavior from PB 2019 R3? If yes then we would need you to provide more information, including MaskDataType and Mask, and if possible, a PBL case would be the best.

 

Regards,

Ken

 

Comment
  1. Richard Granquist
  2. Friday, 16 April 2021 13:41 PM UTC
I think the fix is to change edit mask fields to single line edit fields. We did edit mask for customer number to limit to 6 digits, but also used for customer name to limit how many characters they could type. The downside is we have many pop up windows that followed this pattern so it will take some time to correct. Thanks for verification. It may have been like this for several versions, but I just noticed it recently. I was hoping for a simple fix.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 16 April 2021 17:25 PM UTC
FWIW: Might be better to handle this type of data checking in the DWO's "EditChanged" event (where you can validate as they type each character) for your own specific needs via absolute PowerScript control.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 April 2021 23:09 PM UTC
  2. PowerBuilder
  3. # 4

Hi Richard;

  What does your mask look like? Also, is this an EditMask control or a DWO with a EditMask column?

Regards ... Chris

Comment
  1. Richard Granquist
  2. Friday, 16 April 2021 13:44 PM UTC
EditMask control, the MaskDataType property is set to 'StringMask!' and Mask property is set to 'xxxxxxxxxxxxxxxxxxx'
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 15 April 2021 23:06 PM UTC
  2. PowerBuilder
  3. # 5

Rick, are you using an EditMask control in your window or are you using a DataWindow column that uses the EditMast edit style? I use a single-line edit control only in very rare instances, if at all. We much prefer to use an external source DataWindow object in a DataWindow control for user input, including search criteria (our commercial app contains approx. 350 windows).

I would never use either type of edit mask for your purpose. I agree with Miguel's general sentiments regarding edit masks. We do, however, use the Edit Mask edit style in DW's for date and datetime data entry.

Regards, John

Comment
  1. Miguel Leeuwe
  2. Friday, 16 April 2021 01:20 AM UTC
Sorry John, just deleted that entry to "look more professional". Yes definitely agree with you: for date(time) the masks could be useful.
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 16 April 2021 01:25 AM UTC
... but yes: I hate edit masks!
  1. Helpful
  1. Richard Granquist
  2. Friday, 16 April 2021 13:43 PM UTC
I agree with your statement to use DW instead of em and sle controls on pop up window. Much more flexibility for sure!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.