This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Dino
Posts: 472 Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:
Post
by Dino » Sat Jun 12, 2021 8:43 am
I am trying to send the key Enter after the user enter a value in a subfile
Code: Select all
Evtroutine Handling(#SUBFILE_PANT09.ItemChanged)
Define_Com Class(#STD_DATEX) Name(#TemporaryDate)
Define_Com Class(#STD_INT) Name(#Index)
#Index := #SUBFILE_PANT09.CurrentItem.Entry
Get_Entry Number(#Index) From_List(#SUBFILE_PANT09)
#COM_OWNER.SETVALUEBYID Fieldid(#NAME_SEL.ComponentTag) Value(#NAME_SEL.CurrentItem.Value) Index(#Index)
#COM_OWNER.Sendkey Key(KeyEnter)
Endroutine
but getting this error:
Function Key Identifier "KEYENTER" is not a valid function key name
this works:
Code: Select all
#COM_OWNER.Sendkey Key(F12)
#COM_OWNER.Sendkey Key(F3)
so... which one is Enter?
MarkDale
Posts: 116 Joined: Wed Dec 02, 2015 10:06 am
Post
by MarkDale » Sun Jun 13, 2021 9:40 am
Just a guess - try 'Enter'
Dino
Posts: 472 Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:
Post
by Dino » Mon Jun 14, 2021 1:54 am
(deleted).
You are correct, 'Enter', capital and lowercase, between quotes. thank you
Last edited by
Dino on Mon Jun 14, 2021 2:00 am, edited 3 times in total.