Get block name from cursor focus location [message #467859] |
Tue, 27 July 2010 16:56 |
coolguy01
Messages: 64 Registered: August 2006
|
Member |
|
|
I have a delete button at the bottom of the form and have two blocks on top of it. I need to know which block i have the focus on or selected the record on pressing the delete button so that I go to that block and do a delete_record from that block. I came across :system.trigger_block which says it gives the name of the block where the cursor was located when the current trigger initially fired. But whenever i use it only returns the name of the block the delete button is located in. Instead i wanted to know where the focus of the cursor was or which record was selected in the above 2 blocks to go to that block and delete the record.
Thanks
|
|
|
Re: Get block name from cursor focus location [message #467863 is a reply to message #467859] |
Tue, 27 July 2010 19:52 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Well that would be the block where the cursor was - the cursor can be on buttons, it doesn't display the same way but it's there.
Try system.cursor_block and see if it does anything different - though I doubt it.
Why aren't you using the delete on the toolbar? It doesn't have this problem.
|
|
|