RDMLX OnReturnKey for Text Box cannot set action

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
jimoreilly
Posts: 22
Joined: Sat Apr 20, 2013 6:17 am

RDMLX OnReturnKey for Text Box cannot set action

Post by jimoreilly »

The onreturnkey event for a text box works but always returns ONRETURNKEY as the action.

Using LNRGSERVICES I can set it directly, but it looks like in LNRG_FORM the action is hard coded to the literal 'OnReturnKey'
Paul

Re: RDMLX OnReturnKey for Text Box cannot set action

Post by Paul »

Thanks for reporting this. It looks like it was introduced in the RV 14 version. It will be fixed in the next release.

For now you will need to set the OnReturnKey property for text boxes directly with the Set method...

Code: Select all

#LRngServices.Set Property('/Form.Fields.MyTextbox.OnReturnKey') To('MyReturnKeyAction')
or

Code: Select all

#ComOwner.Set Property('/Form.Fields.MyTextbox.OnReturnKey') To('MyReturnKeyAction')
Paul

Re: RDMLX OnReturnKey for Text Box cannot set action

Post by Paul »

As a general note to the forum, you can learn more about setting properties directly in the LongRange LANSA Programming guide..

http://www.longrangemobile.com/docs/lan ... inglon.htm

Thanks
Post Reply