A user opens a list form and selects (highlights) multiple records. In C/AL, how can I loop through those selected records, performing 'X' action against each record. I'm being asked to provide the Mark (CTRL+F1) functionality using a button on the form. CTRL+F1 will update every record highlighted but so far in C/AL, I can only update the one record that I'm currently on. I just need to know how to move through all selected records. Thanks in advance!
0
Comments
If you select a number of inv/credit to apply and hit F9 all the selected lines have their Apply-to ID filled in. You mean like that?
Try it, run the code coverage to see how that works
Code
Another example ...
I have a button on my sales header that clear sales info on 1 click
Your key here is Repeat->Until
http://www.BiloBeauty.com
http://www.autismspeaks.org
Or use the same function like when you go to Apply-Entries in payments.