That sounds reasonable.
As a string sounds like the best bet. I probably wouldn’t use anvil.server.call
, since that would have some overhead. We’re already running in the server, so I’d just use some variation on globals()[functionname]()
It’d take some playing around to get right.
Parameters could be stored as a simple object column, with some basic substitutions (e.g. the current user’s email, etc)