[RPG]KeyboardShowMode for barcode element

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]KeyboardShowMode for barcode element

Post by MegumiSawada »

Hi,

Is it possible to use KeyboardShowMode:HIDDEN for barcode element?

I would like to set focus programmatically to a barcode element on the formview after last scan completes.
However, if I set focust on the barcode programmatically, software keyboard will be shown automatically.
I would like to stop this behavior.

I would like to make Longrange to show keyboard only when I touch on the barcode element box(not the scan icon).

I'm using iPhone. I hope I can receive any advice to acheive this.

Best Regards,
Megumi
jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: [RPG]KeyboardShowMode for barcode element

Post by jasonzhou »

Unfortunately, this feature is only available on Android when KeyboardShowMode = ONREQUEST.

Is it ok not programmatically setting the focus to barcode element?
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]KeyboardShowMode for barcode element

Post by MegumiSawada »

Hi Jason,

Thank you for your reply.
I don't get what you mean in the last sentence...
> Is it ok not programmatically setting the focus to barcode element?
What do you mean?

Best Regards,
Megumi Sawada
jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: [RPG]KeyboardShowMode for barcode element

Post by jasonzhou »

Hi Megumi,

You said you'd like to set focus programmatically to a barcode element after scan completes, I'm just wondering what's the purpose of this?

I think If you don't set HasFocus to True after scan completes, the keyboard won't appear.

Thanks
Jason
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]KeyboardShowMode for barcode element

Post by MegumiSawada »

Hi Jason,

I will use AsReader with LongRange, and after scanning (& showing the formview) I would like to keep scannig with trigger switch of AsReader.
At that time, the forcus need to be located on the barcode element. So I'm setting HasFocus to the barcode element.

Is there any way to acheive my requirement?

Best Regards,
Megumi Sawada
jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: [RPG]KeyboardShowMode for barcode element

Post by jasonzhou »

If there is only one barcode element, it will get scanned value even if no focus on it.

If there is two or more barcode elements, the one with Scanner.AsReader.AutoConnect = True can get scanned value.
Post Reply