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
0
Comments
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.
http://www.BiloBeauty.com
http://www.autismspeaks.org
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.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
http://mibuso.com/blogs/davidmachanick/