get all minus omitted records

There is a function “omitRecord”, I want to know how records marked as omitted in the foundset. I there a Servoy function to get the “allRecordsFoundSet” - “allOmittedRecordsFoundSet”?

Hi Sebastian,

try:
controller.loadAllRecords() and controller.loadOmittedRecords()

Hope this helps

mboegem:
Hi Sebastian,

try:
controller.loadAllRecords() and controller.loadOmittedRecords()

Hope this helps

Hi Marc, is it correct if I try the following:

foundset['relationName'].loadOmittedRecords()
foundset['relationName'].deleteAllRecords()
foundset['relationName'].loadAllRecords()

to delete only the records that marked as omitted from the foundset / relation?

I think that should work, but give it a try and see what happens.