Hi Amit,

I have already visited this Task Macro, but found that we can trap only F1 
(task id : 257) and F5.
Currently F1, is used globally for Help, so we can not use the same.

My concern over here is that how can we be able to trap other Function keys (F2 
- F4, F6 - F12).

Response in this regard will be appreciated.

Regards,
Ashwani Jain


----- Original Message ----
From: Amit Jain <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Wednesday, 14 November, 2007 9:45:58 AM
Subject: Re: [Axapta-Knowledge-Village] Trapping of function keys in Axapta, 
and using them as Hotkey for certain requirements / process


hi Ashwani,
 
you can do this in Classes/syssetupFormRun/task method, if you want to do this 
universally for whole Axapta or forms/formname/methods/task if you want to do 
this only for a single form.
 
Whenever you perform function like CTRL+N, ALT+F9, this task method is called. 
 
So if you have to change CTRL + N hotkey to delete record, just write this code.
 
if(_p1 ==#taskNew)
_p1 = #taskDeleteRecord.
 
Likewise you can make other changes, but you will have to see Task macro for 
this.
 
Regards
Amit Jain


ASHWANI JAIN <[EMAIL PROTECTED]> wrote:
Any body who has any idea about this.
Early response is appreciated.

Regards,
Ashwani Jain

----- Original Message ----
From: ASHWANI JAIN <[EMAIL PROTECTED] com>
To: development- [EMAIL PROTECTED] ps.com; Axapta-Knowledge- [EMAIL PROTECTED] 
ups.com
Sent: Wednesday, 7 November, 2007 2:35:29 AM
Subject: [Axapta-Knowledge- Village] Trapping of function keys in Axapta, and 
using them as Hotkey for certain requirements / process

Hi all,

Whether anybody has worked on how to trap the Function key in Axapta and use 
them on forms for some specific functions as hotkey.
In Shop floor control, we do have a feature, but that is basically on form 
level, and wherever this functionality is required, techie has to mention that 
code / logic on individual form. 
Is there any generic way / global class, wherein if we will mention, then that 
will work throughout axapta.

e.g.: Currently for creation of new record in form, CTRL + N works fine and ALT 
+ F9 work to delete.
Can it be possible that i will be able to trap the function suppose F2 and will 
be able to replace Ctrl + N with F2. 
this is just an example, where i have mention to replace. But main purpose is 
to assign that function key to some other functionality.

Does any one has idea about this?
Thanks in advance.
Regards,
Ashwani Jain

Forgot the famous last words? Access your message archive online at 
http://in.messenger .yahoo.com/ webmessengerprom o.php

[Non-text portions of this message have been removed]

Get the freedom to save as many mails as you wish. To know how, go to 
http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html

[Non-text portions of this message have been removed]


 




Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.


      Save all your chat conversations. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

[Non-text portions of this message have been removed]

Reply via email to