Re: Execute on Server Method Attribute

2018-07-16 Thread Arnaud de Montard via 4D_Tech
> Le 15 juil. 2018 à 04:47, Ben Kershaw via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Is one of those arrays a pointer array? I’m guessing so, because that doesn’t > work and results in that error message. A pointer to other array types works > fine, but not a pointer array. Sorry. > >

Re: Execute on Server Method Attribute

2018-07-15 Thread Charles Miller via 4D_Tech
Just one thought. Had the calling method process or method ended. If so pointers can not be used Regards Chuck On Sat, Jul 14, 2018 at 10:47 PM Ben Kershaw via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On Jul 14, 2018, at 11:12 AM, Stephen J. Orth wrote: > > > > I'm struggling with designating a

Re: Execute on Server Method Attribute

2018-07-14 Thread Ben Kershaw via 4D_Tech
On Jul 14, 2018, at 11:12 AM, Stephen J. Orth wrote: > > I'm struggling with designating a method to run on the server. The method > has 9 parameters which are passed to it: > > 1. Text Variable > 2. Date Variable > 3. Time (Long) Variable > 4. Date Variable > 5. Time (Long)

Re: Execute on Server Method Attribute

2018-07-14 Thread Kirk Brooks via 4D_Tech
Steve, I think you're using v15 at least - so, put all those parameters into an object and pass the object as the parameter. This resolves the 'Accessing a missing parameter' error. You can put the arrays directly into the object instead of using pointers. This way the server side method can

Re: Execute on Server Method Attribute

2018-07-14 Thread Jeremy French via 4D_Tech
Does the database compile with compiler option “All variables are typed”? Have you tried assertions to test each parameter has the expected value type (test, date, time, pointer, pointed array type)? The failed assertion will be displayed on the server. > On Jul 14, 2018, at 10:12 AM, Stephen

RE: Execute on Server Method Attribute

2018-07-14 Thread Stephen J. Orth via 4D_Tech
ouglas von Roeder Subject: Re: Execute on Server Method Attribute Steve: Try "bottom up" construction of the method. Create a method and get it to work with the most simple function. Then, incrementally add the code from the existing method. Don't copy and paste from the existing

Re: Execute on Server Method Attribute

2018-07-14 Thread Douglas von Roeder via 4D_Tech
many methods that use > the EOS attribute, this is the first time I've run into any issue. > > > Steve > > > -Original Message- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Tim > Nevels via 4D_Tech > Sent: Saturday, July 14, 2018 2:08 PM > To: 4d_t

RE: Execute on Server Method Attribute

2018-07-14 Thread Stephen J. Orth via 4D_Tech
Nevels via 4D_Tech Sent: Saturday, July 14, 2018 2:08 PM To: 4d_tech@lists.4d.com Cc: Tim Nevels Subject: Re: Execute on Server Method Attribute I would start simple. First be sure to declare the parameters with compiler directives. Then modify the method to only use a single text parameter

Re: Execute on Server Method Attribute

2018-07-14 Thread Tim Nevels via 4D_Tech
I would start simple. First be sure to declare the parameters with compiler directives. Then modify the method to only use a single text parameter. Change the parameter declarations too. Just for testing purposes. Test it. If it does not generate an error with 1 parameter, add a second

RE: Execute on Server Method Attribute

2018-07-14 Thread Stephen J. Orth via 4D_Tech
I'm completely confused... No matter how I send the parameters (pointer, variable, text string) into this method with the EOS attribute enabled, Server is complaining that I'm accessing a parameter that does not exist. I've looked at the documentation and my method follows exactly what is