No reason you would have. The undo: action is not mentioned in the documentation – you would have to be familiar with the Objective-C runtime to know this was available. (Even access to the Panorama source code wouldn’t help you on this – the undo: action is part of Apple’s code, not Panorama’s. I didn’t put a complete list of available actions in the documentation because I don’t have access to a complete list myself.)
Sorry, I didn’t mean to do that!
Me too! But I don’t think very many people use it.
Uh-oh, I might hurt your feelings again, if so apologies in advance. In Panorama X the arraybuild( function has an optional query parameter, that allows you to build an array based on a subset of the database, without having to first select the subset. So instead of a two step select followed by arrayselectedbuild, you can just use arraybuild( with a query formula. I actually use this even more than the aggregate( function.
Note that the arrayselectedbuild( function can also include a query formula, but it will only apply the query to selected records. You could also do this with the arraybuild( function by using info(“visible”) in the query formula. But I think in your case (and most cases) I wouldn’t mess with selection at all, just build the array based on the query formula. Then you won’t need to worry about undoing the selection, or even about what the current selection state of the database is.