Changing a value that determines the foundset

I’ve had a look around but haven’t found the answer and need some advice.

If I go from a list of a foundset of records (eg status == ‘On Hold’) to a another form with the command

forms.invoices.controller.showRecords(foundset)

and I then edit the field that made the record a part of the foundset (eg changing status to something else), then that record disappears. What’s a slick way of keeping the foundset as it was when loading the second form?

Apologies if this has already been explained elsewhere.

HI Antionio,

than you have to a manual (same) search on that form, instead of using the loadRecords(foundset)

Hope this helps

Thanks that does the trick! A little more code, but fewer questions from the customers about ‘where did that record go’. The nice thing about
forms.invoices.controller.showRecords(foundset)
is that is stays on the same record, so I’ll have to allow for that with the code too.