We can mark random records from a table. For example, we want to filter Customer entries by a field which is not in the table "Cust. ledger entry", but in the Customer table. We can go trough the records on "Cust. ledger entry", access the customer and see if it has the property we want. Then we mark that record with Record.MARK(true).
Then we have a group of records marked, and we can use them to print a report, or to show them on a form.
Additionaly, users can mark records in a list form by pressing Ctrl-F1.
For example: when the Item List form is open, people can mark different items using Ctrl-F1 when the cursor is on the item they want to mark. After marking several records, they can use View -> Marked Only from the menu to view only the marked items.
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
I always mark the objects that I'm working with in the object designer, so I don't have to set filters. Then I open the 'All' window and view marked only. Makes it nice to have all my current objects in one view.
also one of the shortcommings that setrange and setfilter have is that you can't filter a sql statement such as
select *
From Customer
where Name = 'Chronus' OR City = 'Springfield'
So you have to filter on first criteria, loop through them and mark them, and set the second criteria and loop through them and mark them and then filter on mark only.
Ahmed Rashed Amini
Independent Consultant/Developer
Comments
Then we have a group of records marked, and we can use them to print a report, or to show them on a form.
I hope this helps you to understand..
For example: when the Item List form is open, people can mark different items using Ctrl-F1 when the cursor is on the item they want to mark. After marking several records, they can use View -> Marked Only from the menu to view only the marked items.
RIS Plus, LLC
select *
From Customer
where Name = 'Chronus' OR City = 'Springfield'
So you have to filter on first criteria, loop through them and mark them, and set the second criteria and loop through them and mark them and then filter on mark only.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
N.Sridhar