Dynamically get selected Lines on form

Staminos
Member Posts: 68
Hi,
I try to get the selected lines on a form.
I create this function
SelectedLines is variable where I store current selected lines
And I put this function on trigger OnNextRecord
But I have the selected lines one clic later. ](*,)
I try to find which event can be catch just at the end of lines' selection
If someone have a idea...
I try to get the selected lines on a form.
I create this function
GetSelectedLines() CurrForm.SETSELECTIONFILTER(lLine); SelectedLines := lLine.COUNT;
SelectedLines is variable where I store current selected lines
And I put this function on trigger OnNextRecord
But I have the selected lines one clic later. ](*,)
I try to find which event can be catch just at the end of lines' selection
If someone have a idea...
0
Answers
-
Do't invent the weel :shock: copy it from already made code f.i. Form 220
-
scuse me for my bad english
that was not my question
i just want to have some kind of "AfterGetCurrentRecord" but at the end of my selection of multiple lines.
without any event but my last line selected..
and then i have to show current totals of all the lines i selected
any idea if it's possible ? :roll:0 -
you need a COUNT of the selected lines? If yes, there is no event for this. Because if you select the line (mark it blue), all the triggers like OnNextRecord() or OnAfterGetCurrRecord() are finished before. So, you have two options, timer (formtimer or dll timer) or press a button.
but don't forgett. If no line is "blue", the function SETSELECTIONFILTER() returns the Current Line.
RegardsDo you make it right, it works too!0 -
Thank a lot to your response Garak
I had finally choose button solution0 -
Please and welcomeDo you make it right, it works too!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