On Dynamics GP-->for Lookup if user press 'Ctrl + l) it open Lookup. Is it possible to get same key press event using Visual Studio Tools?
Your earliest reply is highly appreciable.
Thanks
Sandip Jadhav
*This post is locked for comments
On Dynamics GP-->for Lookup if user press 'Ctrl + l) it open Lookup. Is it possible to get same key press event using Visual Studio Tools?
Your earliest reply is highly appreciable.
Thanks
Sandip Jadhav
*This post is locked for comments
Sandip,
Have you looked at using the 'Menus for VS Tools' Add-On? I think that allows you to register VS forms into the menu structure and you can also give the form a shortcut of some kind (CTRL + S, or something like that). I don't know if you can reuse CTRL + L as Almas stated, because it's already in use.
Regards,
Aaron
Sandip,
Sorry to getting back to you late, Eid Holidays. :)
Ctrl+L is already used by browser so you may try using only L.
below is a code.
<textarea name="MyText" id="MyText" onKeyPress="handleKey(this);" ></textarea>
<script>
function handleKey(ta) {
if (event.keyCode == 108 || event.keyCode == 76) {
alert('L pressed.');
}
}
</script>
alert('L pressed.'); will be replaced by your code to open lookup window.
Hope this will help.
Almas,
Nice to see you!!! I need Ctrl + L only for Lookup field. Is it possible to get Kepress event from Visual Studio Tools?
Thanks
Sandip
Ctrl+L only works with those fields for which we have used 'Linked Lookup' property. I think to give image of Crtl+L functionality you need to do some coding, just opposite to dexterity where we just link lookup and it opens on Ctrl+L.
BTW nice question. :)
Will try to do it when have some time.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,430
Most Valuable Professional
nmaenpaa
101,156