cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry - on an iOS device use numeric keypad on an optional field

former_member231132
Participant
0 Kudos

This issue is related to iPhone and iPad.  I have a transaction screen that has an entry field which should only permit a decimal number to be entered.  For this field, I want the numeric keypad to pop up for data entry.  The only way I know to get the numeric keypad to come up is to set the field's edit type to Decimal Number.  However, when you use Decimal Number edit type, Agentry defaults the field to zero and also requires a value to be entered (even if you delete out the zero it will re-insert it when you try to save).  Since the field is optional I don't want to require a value, and also don't want any value to be defaulted in the field.  Someone suggested that I use the "Blank when displaying zero" property on the transaction property, however since zero is a valid entry I can't use that.

Is there any way to use the numeric keypad on iOS and also not default nor require a value in the entry field?

Thanks

Tim

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Currently with the decimal fields there is no way to do that out of the box.  The best option would be to create an OpenUI control with the behavior you want and then use a string field to store the underlying value to allow for blanks to be supported.

--Bill

former_member231132
Participant
0 Kudos

Bill,  Thanks for the reply.  I've not used OpenUI before - would I be able to disable the standard keyboard and be able to replace it with my OpenUI control?

Thanks

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

With OpenUI you would be replacing the existing field with your custom code.  In you code you will have full control over what is displayed on the screen for that field.  I don't know why that wouldn't also include control of telling iOS what type of keyboard to display.

--Bill

Answers (1)

Answers (1)

kevin_xu4
Active Participant
0 Kudos

Hi Tim,

Check the Decimal Number Property, there is option you can choose is "Blank when displaying zero".

Best Regards,

Kevin Xu

SAP Product Support

former_member231132
Participant
0 Kudos

Kevin - thanks for your reply however I can't do that since zero is a valid response from the user.  So I need the field to actually display the zero if they enter it.  I simply don't want there to be any default value in the field and also not require a value.