Thanks for your test. It helped me find the following solution from page 680 of
restricted method () through a menu event, one of the following must be true:
2.The method must be executed through a trusted function. For details and
examples, see app.trustedFunction().
The paragraph titled Privileged versus Non-privileged Context also should be
Thanks for all of your efforts.