Re: WritePro expression undefined

2018-12-27 Thread Add Komoncharoensiri via 4D_Tech
David, eval is a project method that will execute a PROCESS 4D TAGS. I am pretty sure Erick provided an explanation to what that method does. Regards, Add  On 12/23/18, 11:29 PM, "4D_Tech on behalf of David Ringsmuth via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of

RE: WritePro expression undefined

2018-12-23 Thread David Ringsmuth via 4D_Tech
Tim! We have great support from 4D! (Erick) This is an effective 4D tech support work-around to the problem of “Undefined”. Here “WParea” is a 4D Write Pro object. After running this method on our converted 4D Write to 4D Write Pro documents, none of the embedded statements return

RE: WritePro expression undefined

2018-12-22 Thread David Ringsmuth via 4D_Tech
Tim! Thanks!!! I’m about to evaluate a work-around from the faithful tech support team…  David Ringsmuth ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options:

RE: WritePro expression undefined

2018-12-21 Thread Tim Nevels via 4D_Tech
On Dec 21, 2018, at 2:00 PM, David Ringsmuth wrote: > Add, > > 4D Write expressions did not require a value to be returned, so it was > acceptable to have embedded Query, Create Set, Intersection, Union, Use Set, > Selection to Array, etc…, commands in the 4D Write document. > > Converted to

RE: WritePro expression undefined

2018-12-21 Thread David Ringsmuth via 4D_Tech
Cc: Add Komoncharoensiri Subject: Re: WritePro expression undefined Hi David, If you are insert an expression into a 4D Write Pro document, the expression should return a value. For example: 100+90 Current date projectMethodThatReturnAValue For QUERY command, the execution will produce

Re: WritePro expression undefined

2018-12-21 Thread Add Komoncharoensiri via 4D_Tech
Hi David, If you are insert an expression into a 4D Write Pro document, the expression should return a value. For example: 100+90 Current date projectMethodThatReturnAValue For QUERY command, the execution will produce a selection of record in memory. It does not return a value that can be

RE: WritePro expression undefined

2018-12-20 Thread David Ringsmuth via 4D_Tech
John, We can manually limit the entry of commands and methods, since we control the UI that inserts expressions. It would be easier is the command SET ALLOWED METHODS did this for us automatically. Thanks for your help John! David Ringsmuth

Re: WritePro expression undefined

2018-12-20 Thread John DeSoi via 4D_Tech
There is no such command SET ALLOWED COMMANDS, only SET ALLOWED METHODS which only works on methods. If you allow users to enter "QUERY" then they can also enter DELETE SELECTION. The documentation says: > If you would like the user to be able to call 4D commands that are > unauthorized by

RE: WritePro expression undefined

2018-12-20 Thread David Ringsmuth via 4D_Tech
ould be restrictable. David Ringsmuth From: John DeSoi via 4D_Tech Sent: Thursday, December 20, 2018 11:43 AM To: 4D iNug Technical Cc: John DeSoi Subject: Re: WritePro expression undefined I see two options: 1. Submit a bug/feature request to 4D and hope they change it to return nothing instead

Re: WritePro expression undefined

2018-12-20 Thread John DeSoi via 4D_Tech
I see two options: 1. Submit a bug/feature request to 4D and hope they change it to return nothing instead of "Undefined". 2. Replace all of your QUERY commands with a method that returns an empty string. I don't use 4D Write Pro, but I think automating the replacement in 4D Write before

RE: WritePro expression undefined

2018-12-20 Thread David Ringsmuth via 4D_Tech
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

Re: WritePro expression undefined

2018-12-20 Thread John DeSoi via 4D_Tech
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

WritePro expression undefined

2018-12-20 Thread David Ringsmuth via 4D_Tech
4D v17.2.0.0 227919 R2 32bit or 64bit Windows 10 Home 1803 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! Thanks! David Ringsmuth