John, WritePro documents may contain references to [Table]Field, which requires that the record be present during printing, which may require QUERY commands.
The embedded QUERY commands work, execute properly in WritePro. But in place of the embedded expression is the value “Undefined”. We have hundreds of converted documents with queries in them that worked correctly in 4D Write. There they executed and did not display “Undefined” in the 4D Write document. These should not have to be wrapped commands to work without an “Undefined” appearing in the WritePro document. This in new and apparently wrong behavior in WritePro. If this is not an error in WritePro, and if it is the intended operation of WritePro, then it is a warning to everyone converting from 4D Write documents. David Ringsmuth From: John DeSoi via 4D_Tech Sent: Thursday, December 20, 2018 10:38 AM To: 4D iNug Technical Cc: John DeSoi Subject: Re: WritePro expression undefined 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 ********************************************************************** ********************************************************************** 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 **********************************************************************