Execute action on doubleclick in list
deV.ch
Member Posts: 543
In the Service Dispatch Board, i'd like the Show Documents action bo be executed on doubleclicking a record. Since there is code to do this i can't use CardPageID.
So there is an example of doing this in My Customers List Part for Role Centers using "Return" as a shortcutkey. But that seems to only work in Role Centers.
Does anybody have another solution of doing this or is this another limitation?
So there is an example of doing this in My Customers List Part for Role Centers using "Return" as a shortcutkey. But that seems to only work in Role Centers.
Does anybody have another solution of doing this or is this another limitation?
0
Comments
-
Are you saying shortcutkey "Return" doesn't work in lists for you?
It's strange...
viewtopic.php?f=32&t=46935
as you can see from this post I asked the same thingh and worked for me...
May I don't get something?~Rik~
It works as expected... More or Less...0 -
you probably are trying to apply this on editable list part. Yes, this is limitation, if the list is editable, then the code is not executed, the Enter key just move to the next cell, but if you rightclick on the record you will notice that the action is bolded. This is standard behaviour for list and listpart pages. In editable mode Enter move to the next cell, in non-editable mode it opens the card (or execute the function with shortcutkey Return).-Mihail- [MCTS]0
-
Yes i've done that too once. But can't remember where, but i tested and found out that only if i'am using a role center this trick is working for me..
To test it i created this simple list:OBJECT Page 50999 Test Return Shortcut { OBJECT-PROPERTIES { Date=01.02.12; Time=10:03:48; Modified=Yes; Version List=; } PROPERTIES { SourceTable=Table18; PageType=List; ActionList=ACTIONS { { 1100135005; ;ActionContainer; ActionContainerType=ActionItems } { 1100135006;1 ;Action ; ShortCutKey=Return; Visible=false; OnAction=BEGIN MESSAGE('test'); END; } } } CONTROLS { { 1100135000;;Container; ContainerType=ContentArea } { 1100135001;1;Group ; GroupType=Repeater } { 1100135002;2;Field ; SourceExpr="No." } { 1100135003;2;Field ; SourceExpr=Name } { 1100135004;2;Field ; SourceExpr="Name 2" } } CODE { BEGIN END. } }Thsi should show a message with 'test' when double clicking. But it doesn't ...
Is this working in your version/build?
Maybe its a version/build issue... :thumbsdown:
I'am using 2009 R2 (Build:32900)
@ mihail_kolev
Yeah if i set editable to false on that test list it works,
BUT: Why is it not working when i'am in view mode of an editable list?
edit:
I guess i would need to split the Service Dispatch Board in order to have a ListPart which is not editable with an action that uses return as shortcutkey... But thats kind of an overkill for just beeing able to doubleclick instead of clicking "Show Documents"...1 -
well, I think this is global limitation, because all standard lists (Customer, Vendor, Item etc...) has their Editable properties set to "No". Maybe we can ask Microsoft for DoubleClick shortcut in NAV7-Mihail- [MCTS]0
-
You are right - it's a limitation. We use return key to tab between fields and columns. Please use another key combination that makes sense. Doubleclick isn't helpful for keyboard only users.
Troels Bent Hansen
Senior Program Manager
Microsoft Dynamics NAV
****** This posting is provided "AS IS" with no warranties, and confers no rights ******0 -
In my scenario the focus lies on a repeater that is not editable, so therefore it would make sense even for a keyboard user!
For a user there is no difference between a not editable repeater (but page is editable since you have to enter filters to get the records you ened), and a not editable list page. The problem is that he expects to be able to hit enter or doubleclick in the Dispatch Board and the filtered record will be opend in the card page.
I understand that it is a limitation but i would expect the same beahvoiur from a not editable repeater as from the whole page being not editable.
But anyway thanks for clarification. :thumbsup:0 -
@ deV.ch thank you your solution help a lot.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 329 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
