SET ALLOWED METHODS specifies project methods allowed, not 4D commands. So unless you named a project method the same as the 4D command QUERY, you are using it wrong. And the 4D command QUERY does not return a result, so I'm not sure how you would use that in an expression. Of course, you can write a 4D project method that uses QUERY and returns a result in $0 as the result of the 4D Write expression.
John DeSoi, Ph.D. > On Dec 20, 2018, at 9:30 AM, David Ringsmuth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > WP PRINT(Rpt_ob;wk 4D Write Pro layout) > SET ALLOWED METHODS included “QUERY” > > 4D Query command expressions appear as “Undefined” in the printed document. > The command appears successful. > > Please help! ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************