RDMLX

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
robdorn
Posts: 12
Joined: Sun Nov 04, 2012 7:52 am

RDMLX

Post by robdorn »

Is there a way to disable the return key?

Thanks,

Rob
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: RDMLX

Post by MarkDuignan »

I am not exactly sure what you mean. I think that usually the enter/return key does not appear for simple entry fields (textboxes) unless you enable it. Could you possibly post a screen shot of your whole form view and of the keyboard that appears to elaborate? Also – are you using iOS, Android or both?
robdorn
Posts: 12
Joined: Sun Nov 04, 2012 7:52 am

Re: RDMLX Return Key

Post by robdorn »

I have the return key enabled and it executes a subroutine when pressed. If I display a popup message and the user clicks ok or cancel within the message everything is ok. If the user clicks return then it executes the subroutine and kicks them out of the application. They shouldn't be able to press the return key when the message is displayed.


Thanks,

Rob
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: RDMLX

Post by MarkDuignan »

Is the pop up message you own popover form - or simple message box?
robdorn
Posts: 12
Joined: Sun Nov 04, 2012 7:52 am

Re: RDMLX

Post by robdorn »

In this case it's a pop over form but it's also happening on a simple message box.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: RDMLX

Post by MarkDuignan »

I am having trouble trying to construct a test example where both a message box and the keyboard are both visible at the same time.
Could you possibly post a screen shot so I can see what the form view behind the message box looks like?
BTW - we are talking about the virtual keyboard – not a real one?
robdorn
Posts: 12
Joined: Sun Nov 04, 2012 7:52 am

Re: RDMLX

Post by robdorn »

Mark,

The keyboard is virtual. The application is on an Ipad. Here is an example of the text box that is executing the subroutine when the return key is pressed:

#COM_OWNER.Set_TextBox Name(ItemOrdTxt) Value('') Datatype('Number') Layout_Col(2) Layout_Row(2) Maxlength(15) Show_Popover(TRUE) Onreturnkey(ADD_ITEM) Hasfocus(TRUE)

This is an example of the Pop over form:

* A PopOver Label with a confirm dialog
#COM_OWNER.Set_TextBox Name('ItemOrdTxt') Show_Popover(TRUE)

* The popup is a form object itself, with its own fields and buttons and layout. Its constructed as a property of the ItemOrdTxt field
#COM_OWNER.Set Property('ItemOrdTxt.Popover.Type') To(Form)
#COM_Owner.Set_Label Name('ItemOrdTxt.Popover.Fields.MESSAGE1') Layout_Col(1) Layout_Row(1) Text('Item ' + #ItemOrdered + ' already exists click Cancel to not add it Click OK to add to existing QTY') Layout_Cols(2)

#Com_Owner.Set_Button Name('ItemOrdTxt.Popover.Fields.BUTTONOK') Text(OK) Onclick(OK_BUTTON) Layout_Col(1) Layout_Row(2)

#Com_Owner.Set_Button Name('ItemOrdTxt.Popover.Fields.BUTTONCANCEL') Text(Cancel) Onclick(CANCEL_BUTTON) Layout_Col(2) Layout_Row(2)

I am also attaching a joblog with the error I receive on the server.

Thanks,

Rob
Attachments
JoblogLongRange.pdf
Job log with error
(15 KiB) Downloaded 260 times
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: RDMLX

Post by MarkDuignan »

My LANSA system is out of action at the moment – but using RPG I got an example to look like this:
image1.png
image1.png (72.36 KiB) Viewed 6397 times
Is that what you have (and want) – with the focus in the input field, the keyboard visible and the pop over all displayed at the same time? If that is what you intend to do then I think you might struggle to get it to work properly – I think you normally need the user to dismiss a pop over before they can interact with the formview behind/below it. You are sort of bypassing that by putting the keyboard up with the HasFocus option and that might not reliably work.

I think that when the popover is displayed you should try not using the HasFocus(TRUE) so that the keyboard does not appear when the screen is initially displayed along with the pop over. Then the user has to use or dismiss the popover before starting to interact with the entry field. If you wanted to also disable the return key I guess you could try OnReturnKey(‘ ‘) or use the option to set the OnReturnKey property to null.

In your design is the popover meant to be fully modal – in the sense that user should use it or dismiss it before interacting with the parent formview behind/below it?
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: RDMLX

Post by MarkDuignan »

The server job log does not reveal anything much. You might try the Troubleshooting & Support option with System-level tracing turned on to get a server side trace.
This might reveal some more details about what is send to, and what happens on the server, when you press the return key. If you get the tracing turned on and find the trace file being produced - then run the app to just before the problem - then delete the trace file. Then execute the problem. This minimizes the trace data to just the problem area.
Post Reply