SETSELECTIONFILTER + Ctrl-A

rikus12
Member Posts: 8
I have a problem using the CurrForm.SETSELECTIONFILTER -functionality.
I open a form for example the Customer List, and when a press Ctrl-A (default windows-functionality to select all) and I then perform an action using de CurrForm.SETSELECTIONFILTER, no records are marked.
When I select the records by clicking the mouse in the first record and scrolling down to the last, it works fine.
Is there a solution how I can make Ctrl+A work too?
I open a form for example the Customer List, and when a press Ctrl-A (default windows-functionality to select all) and I then perform an action using de CurrForm.SETSELECTIONFILTER, no records are marked.
When I select the records by clicking the mouse in the first record and scrolling down to the last, it works fine.
Is there a solution how I can make Ctrl+A work too?
0
Comments
-
Hello
Add a menu Item in a menu button and set the shortcut to Ctrl+a. Then on push add your code to mark the current records. This is the only way I see you could do it.0 -
From the CSide Help
SETSELECTIONFILTER (Form)
Use this function to have the system note the records the user has selected on the form, mark those records in the table specified, and set the filter to "marked only".
CurrForm.SETSELECTIONFILTER(Record)
Record
Data type: record
A specific record or records.
Comments
If either all or no records are selected, marks will not be used.
Steve0 -
rikus12 wrote:Is there a solution how I can make Ctrl+A work too?
The proper way to use SETSELECTIONFILTER is almost always like this:...OnPush() CurrForm.SETSELECTIONFILTER(LocalRec); // Never never use Rec !!! IF LocalRec.FIND('-) THEN // Or FINDSET if available REPEAT DoWhatEver(LocalRec); UNTIL LocalRec.NEXT = 0;
Could it be any easier? 8)Regards
Peter0
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