Launching Code at Double-Click

Troubles_In_Paradise
Member Posts: 588
Hi guys, I've one question for you.
I'm making a personalization on the Customer List Page. As you know (thanks to CardPageID property), performing double-click on a record in the repeater, the Card will be opened. My personalization consists in opening 2 different type of card according to a field in the customer table.
The code is simple and is the following:
Now I'm wondering if there's a possibility to launch this code when user makes a double-click on a record.
Thx in advance!
I'm making a personalization on the Customer List Page. As you know (thanks to CardPageID property), performing double-click on a record in the repeater, the Card will be opened. My personalization consists in opening 2 different type of card according to a field in the customer table.
The code is simple and is the following:
IF "Only Distributive" THEN BEGIN CustomerCardDistributive.SETRECORD(Rec); CustomerCardDistributive.RUN; END ELSE BEGIN CustomerCard.SETRECORD(Rec); CustomerCard.RUN; END;If I put it in an action it works with no problems.
Now I'm wondering if there's a possibility to launch this code when user makes a double-click on a record.
Thx in advance!
~Rik~
It works as expected... More or Less...
It works as expected... More or Less...
0
Answers
-
Action->Properties->ShortCutKey - Return (or Enter... I don't remember :oops: )-Mihail- [MCTS]1
-
mihail_kolev wrote:Action->Properties->ShortCutKey - Return (or Enter... I don't remember :oops: )
Thx Mihail!~Rik~
It works as expected... More or Less...1 -
I really like this solution cause I could set the Visible property of the action to False and code works anyway.
\:D/~Rik~
It works as expected... More or Less...0 -
Hello Troubles In Paradise,
Can you describe this in more steps.
Customer Card > F5 (Customer List) > THEN
.. what are the steps, where did you put your code and the proporties of wich fields did you return.0 -
bekio wrote:Hello Troubles In Paradise,
Can you describe this in more steps.
Customer Card > F5 (Customer List) > THEN
.. what are the steps, where did you put your code and the proporties of wich fields did you return.
Hi Bekio!
1. the code I wrote has been placed in trigger OnAction() of an Action I created in Customer List.
2. open properties of this Action and set:
a. Visible -> false
b. Shortcutkey -> Return
now if you launch Customer List and you performe a double-click on a record or you press enter the code in the action created before will be executed.
is it clear? :P~Rik~
It works as expected... More or Less...0 -
Bekio, we are talking about PAGE. I guess you are asking about classic form. This is not applied for classic client forms.-Mihail- [MCTS]0
-
Yeap, i thought about forms.
But, for pages, what is an action in real(field, part..)!!0 -
Navigate to the bottom of the page, Right click and select “Actions” (“Control Actions” for R2).-Mihail- [MCTS]0
-
mihail_kolev wrote:Bekio, we are talking about PAGE. I guess you are asking about classic form. This is not applied for classic client forms.~Rik~
It works as expected... More or Less...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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