Numeric Fields by mobile Apps
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Numeric Fields by mobile Apps
Hi everybody,
Is there an opportunity to use a numeric keypad for numeric fields by mobile applications?
Thanks,
Karl
Is there an opportunity to use a numeric keypad for numeric fields by mobile applications?
Thanks,
Karl
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Numeric Fields by mobile Apps
I believe it'll do that automatically... HTML5 has an attribute on textboxes that we are putting into the page that should tell the mobile device to bring up the appropriate keyboard. Is it not working for you?
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Re: Numeric Fields by mobile Apps
Thanks Scott,
I'll give it a try.
I'll give it a try.
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Re: Numeric Fields by mobile Apps
Scott,
It's ok.
Questions about the mobile client.
1) What is the parameter for? Found nothing in the docs.
2) Is it possible to disable the device orientation by the client?
(I know the option of Phonegap/manifest.xml)
Thanks,
Karl
It's ok.
Questions about the mobile client.
1) What is the parameter for? Found nothing in the docs.
2) Is it possible to disable the device orientation by the client?
(I know the option of Phonegap/manifest.xml)
Thanks,
Karl
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Numeric Fields by mobile Apps
Sorry, at this time if you wish to control which device orientations are allowed, you would have to use PhoneGap. If this is important to you, you may wish to place a feature request.
The parameter field is a parameter that is passed to your initial mobile program.
We had many customers ask how to have more than one mobile app that's started from the mobile client's menu. The parameter was added to allow this. You see, we could not let the mobile client specify a program name, because this would be a security violation (any user could specify any name they wanted, this would be a big security problem.) So we needed a different way to distinguish between different mobile start up options. We decided that we'd allow a parameter, instead.
Your start up program could then be a simple CL program that does something like this:
So this makes it easy to allow you to start different apps based on the parameter that's passed from the mobile client -- and lets you have as many different mobile apps as you wish.
The parameter field is a parameter that is passed to your initial mobile program.
We had many customers ask how to have more than one mobile app that's started from the mobile client's menu. The parameter was added to allow this. You see, we could not let the mobile client specify a program name, because this would be a security violation (any user could specify any name they wanted, this would be a big security problem.) So we needed a different way to distinguish between different mobile start up options. We decided that we'd allow a parameter, instead.
Your start up program could then be a simple CL program that does something like this:
Code: Select all
PGM PARM(&OPT)
DCL VAR(&OPT) TYPE(*CHAR) LEN(20)
IF COND(&OPT *EQ 'opt1') THEN(DO)
CALL PGM(PGM1)
ENDDO
IF COND(&OPT *EQ 'opt2) THEN(DO)
CALL PGM(PGM2)
ENDDO
ENDPGM
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Re: Mobile Apps and date fields
Let me extend my primary question about date fields in mobile apps.
The numeric key pad is working fine within mobile apps.
But what's about date fields? If I set a date field, I get the small icon and the small calendar that will be showed. Selecting a date (small fingers are a real plus), the alphanumeric keyboard pops up too (not neccessary). Do you think about a more applicable track for mobile devices or have you another solution for mobile date fields?
Thanks,
Karl
The numeric key pad is working fine within mobile apps.
But what's about date fields? If I set a date field, I get the small icon and the small calendar that will be showed. Selecting a date (small fingers are a real plus), the alphanumeric keyboard pops up too (not neccessary). Do you think about a more applicable track for mobile devices or have you another solution for mobile date fields?
Thanks,
Karl
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Numeric Fields by mobile Apps
Karl,
Try using a normal textbox and setting the 'input type' property of the textbox to "date". This will force it to use the HTML5 date type, which should cause the mobile device to bring up it's mobile date selection tool.
Try using a normal textbox and setting the 'input type' property of the textbox to "date". This will force it to use the HTML5 date type, which should cause the mobile device to bring up it's mobile date selection tool.
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Re: Numeric Fields by mobile Apps
Scott,
This works under these circumstances:
a) do not use the mobile client
b) ignore all formattings
If I use an european date format (value property = date/german/tt.mm.jjjj) the input field will be shown as JJJJ-MM-TT (like the field def). This causes an error of a wrong date format.
I called the program by mobile Mozilla Firefox as a website.
Device: Nexus7, Android 4.2
These are my first tests.
Thanks,
Karl
This works under these circumstances:
a) do not use the mobile client
b) ignore all formattings
If I use an european date format (value property = date/german/tt.mm.jjjj) the input field will be shown as JJJJ-MM-TT (like the field def). This causes an error of a wrong date format.
I called the program by mobile Mozilla Firefox as a website.
Device: Nexus7, Android 4.2
These are my first tests.
Thanks,
Karl
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Numeric Fields by mobile Apps
When you use 'input type' to set the type to date, then you are using a feature of HTML5. It's not a feature that Profound wrote or has control over, we are just outputting an input tag with the HTML5 type="date" attribute.
The HTML5 spec requires that the date be sent over the wire in yyyy-mm-dd format. (I guess that's jjjj-mm-tt in German?)
The user will not see the date in that format if the browser is HTML5 compliant, it should show a date picker that allows them to work with the date nicely, etc. But the yyyy-mm-dd is the format required to be stored/read from the textbox in your program code.
The HTML5 spec requires that the date be sent over the wire in yyyy-mm-dd format. (I guess that's jjjj-mm-tt in German?)
The user will not see the date in that format if the browser is HTML5 compliant, it should show a date picker that allows them to work with the date nicely, etc. But the yyyy-mm-dd is the format required to be stored/read from the textbox in your program code.
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Re: Numeric Fields by mobile Apps
Scott,
You're right this means YYYY-MM-DD. Do I have accept that I can't show the date as our natives do or have you a hint for me to convert the date correctly?
Thanks,
Karl
You're right this means YYYY-MM-DD. Do I have accept that I can't show the date as our natives do or have you a hint for me to convert the date correctly?
Thanks,
Karl
Who is online
Users browsing this forum: No registered users and 5 guests