Number keypad for tablet users

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Number keypad for tablet users

Post by RLJB »

We have an app that is being used mostly on iPad/Android tablets and is for invoicing.

On some number fields we would like to default the keypad to be number only. Unfortunately on iPad an Aware Number field defaults to a alpha keyboard and when you hit the ".?123" button to get the numeric keyboard you then lose focus on the number field and have to tap back into it. So it's not a great user experience.

There are a few Javascript/JQuery number pads that look quite nice, but after quite a few hours of trying to implement them I just can't get them to work.

Here are some examples I tried:

https://code-boxx.com/pure-javascript-numeric-keypad/

https://a.kabachnik.info/jquery-numpad.html

If any kind forum soul would like to do a sample bsv I would be forever grateful and buy you a beer.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Jaymer
Posts: 2451
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Number keypad for tablet users

Post by Jaymer »

I like the first one.
Count me in for $50 towards paying John Talbott to solve this.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
BenchmarkDan
Posts: 50
Joined: Sun Aug 10, 2008 7:40 pm
Location: Tulsa, OK
Contact:

Re: Number keypad for tablet users

Post by BenchmarkDan »

I will commit $50 as well.
Dan
_______________________________________________
V8.4 Developer Edition Build 2722. MS SQL Windows
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Number keypad for tablet users

Post by johntalbott »

You might try the approach described here to force the built in iPad numeric keypad to open.

https://stackoverflow.com/questions/617 ... text-input

https://docs.telerik.com/kendo-ui/contr ... imitations
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: Number keypad for tablet users

Post by RLJB »

Sorry for asking the dumb questions... but how to implement this in Aware?

I tried a few different hacks and not working for me...

Code: Select all

/* The widget is initialized. */
$("#my-numeric-textbox").kendoNumericTextBox({ /*...*/ });

/* Set the input type to "number". */
$("#my-numeric-textbox").attr("type", "number");

/* Or, if the widget object is already available. */
var numericTextBoxObject = $("#my-numeric-textbox").data("kendoNumericTextBox");
numericTextBoxObject.element.attr("type", "number");
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
hpl123
Posts: 2594
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Number keypad for tablet users

Post by hpl123 »

I would also like to have this functionality but why tinker with subpar, custom stuff instead of asking support to implement it (for a fee if necessary). The world is increasingly mobile/tablet so is in ours and Awaresofts interest.
Henrik (V8 Developer Ed. - Windows)
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Number keypad for tablet users

Post by johntalbott »

I don't have an iPad to test it, but this will work in theory.

1. In the config tool, add a Cell ID for the numeric form field.
formCellID.png
formCellID.png (25.28 KiB) Viewed 11994 times

2. Put this in the Form Render Script:

Code: Select all

var numericTextBoxObject = $("#CellIDGoesHere").data("kendoNumericTextBox");
numericTextBoxObject.element.attr("type", "number");
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: Number keypad for tablet users

Post by RLJB »

John - you are a legend, I can confirm that does work. Thank you!
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Number keypad for tablet users

Post by johntalbott »

RLJB wrote:John - you are a legend, I can confirm that does work. Thank you!
Great! You're welcome!
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Number keypad for tablet users

Post by ACDC »

Great! You're welcome!
now for the beer :mrgreen:
Post Reply