Suppressing the beep sound where invalid data is entered into a field

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
rigor
Posts: 7
Joined: 07 Jul 2021, 12:46

Suppressing the beep sound where invalid data is entered into a field

Post by rigor »

Hi,

I was wondering if there's a way to remove the invalid input beep sound when inputting alphanumeric on a numeric field.

We've created an AutoDropdown Extension for a client which enable the user to enter alphanumeric on a numeric field. This extension is a combination between an AutoComplete and a Dropdown extension. The user can input in alphanumeric in the field and based on the input a filtered list in dropdown will be shown. However, when a user types in the field, a beep sound is triggered since the autodropdown is alphanumeric and the original field which the AutoDropdown Extension is applied to is numeric. Is it possible in JQuery to resolve this issue to maybe intercept the string input and convert it to numeric?

Thanks.
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Re: Suppressing the beep sound where invalid data is entered into a field

Post by Dino »

Hi

Is anything particular in that input field that make it beep? I just tried with a simple screen with numeric only fields, and if I try to type an alphanumeric character there, I don't get any beep, neither the character appear in the screen...
what version of aXes?
rigor
Posts: 7
Joined: 07 Jul 2021, 12:46

Re: Suppressing the beep sound where invalid data is entered into a field

Post by rigor »

Hi Dino,

Thank you for your response. I'm very sorry for the late response. I was assigned to a different project and was unable to get back to this.

I've created a sample video of my issue. Please see URL below.
https://drive.google.com/file/d/1vvJuBv ... sp=sharing

I think the version we are using is AXES 4.20.

Thanks,
Rigor
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: Suppressing the beep sound where invalid data is entered into a field

Post by Fairdinkum »

Hi,
Sorry for cutting in, it seems this extension is working as HTML5 <datalist> tag, I presume. (Actually I have prepared the DataList extension as well in house.) If my understanding is corrrect, the problem is that unexpected strings (say, the trailing "=Edit") are posted with the expected value (say, "2") combined to the host, and then it fails with beep due to the data type missmatching.
Image 1212.png
Image 1212.png (62.12 KiB) Viewed 7604 times
In my case, adding the datalist extension as an user field and its onSelectedValueChanged property should be something like the following.

Code: Select all

var v = FIELD.getValue();

if ( v.indexOf(":") >= 0 ){
    FIELDS("ifld1407").setValue( v.split(":")[0].trim() );
}
(onFillDropDown)

Code: Select all

ENV.returnValue = ROW.value + ": " + ROW.text;
Result will be:
https://drive.google.com/file/d/1v1YC64 ... sp=sharing

DataList is consists of <input> tag, <datalist> tag and <option> tag pairs, and the <input> contains all the string. This is a big difference from DropDown extension, I think. I understand it's hustling to add the extension as an user field to each 5250 subfile column fields, but it would be worth to do so for your testing.

HTH!

Regards,
Hide
Post Reply