Finding highlighted rows?

ecarmody
Member Posts: 53
Hello,
I would like to do something simple like loop through the rows on the current form/tablebox and find the current selected/highlighted rows.
I've searched the help and a property something like IsSelected doesn't pop out, nor a function to test if row is highlighted.
Appreciate any tips/suggestings to this seemingly simple task.
Thanks,
Eric
I would like to do something simple like loop through the rows on the current form/tablebox and find the current selected/highlighted rows.
I've searched the help and a property something like IsSelected doesn't pop out, nor a function to test if row is highlighted.
Appreciate any tips/suggestings to this seemingly simple task.
Thanks,
Eric
0
Comments
-
Not sure your question is clear here.
A selection can only be in a range.. are you thinking about perhaps filtering on just the hilited lines?? I can't Hilite a line scroll around an highlight another without losing the hilite on the orig line unless it's a range.
HAve you tried using Marking, then view->marked only?
You can hilite 1 or many lines and with ctrl-f1 you can mark them.0 -
Not really.
The scenario is that a user is viewing a tablebox list of records. They select row(s) by mouse clicking; select multiple rows by CTRL+mouse or range of rows by SHIFT+mouse click.
In my code I want to be able to loop through the records of the tablebox (REC) and take action with the rows that the user has highlighted.
My issue is that I don't know what property/function to use to tell is a row is hightlighted as I loop through the rows of the tablebox on the form.
IF Rec.FIND('-') THEN
REPEAT
//if row is highlighted/select then ...
UNTIL Rec.NEXT = 0;
I have not used the MARK functionality before. Would anther approach be for the user to select the rows as above, but to then use the CTRL-F1 to mark them, then in my code is check for the MARK rows?
I'd rather not have to do the CTRL-F1 to mark rows, but rather my first way above.0 -
Look for CurrFrom.SETSELECTIONFILTER(MyRecord). This will set filter to MyRecord which is based on User selected records in the Rec of the form... ;-)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