Re: Execute on Server Method Attribute
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) Variable > 6. Pointer To Array > 7. Pointer To Array > 8. Pointer To Array > 9. Pointer To Array > > When the method is called and executed on the Server, I'm getting an error: > > Accessing a parameter that does not exist 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. It should work, since you can send pointers to an EoS method, but… it doesn’t. 4D could probably make it work, but they haven’t. Regards, Ben Kershaw ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Execute on Server Method Attribute
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 create the arrays it requires and then simply place them back into the return object. "Return object" you say? OK, in this case you need to pass a single pointer to the parameter object. The server side method does whatever it needs to do. This should not rely on anything beyond the direction of what to do from the object ($1). At the end of the method execution you put the results into an object and them write that object back to the pointer to $1. Here's some psuedo code to illustrate: Eg: MySeverSideMethod(->$obj) // $obj has the dates, text and time variables // MyServerSideMethod c_object($obj) c_pointer($1) $obj:=$1-> // $obj now contains whatever you put in it on the client ARRAY X($aFirstArray;0) ... // do some stuff OBJECT SET ARRAY($obj:"firstArray";$aFirstArray) OBJECT SET ARRAY($obj:"secondArray";$aSecondArray) OBJECT SET ARRAY($obj:"thirdArray";$aThirdArray) ... $1->:=$obj // write $obj back to the pointed to variable The key points are that you can declare the arrays locally in the method so it runs no matter what. Then you simply write those arrays to the object passed in. Alternatively you could have your EOS method return an object with the desired data. I would go with writing the data to the passed object and returning either a boolean (true=it worked) or an error text ($0="This is the error message."). On Sat, Jul 14, 2018 at 7:12 AM Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> 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) Variable > 6. Pointer To Array > 7. Pointer To Array > 8. Pointer To Array > 9. Pointer To Array > -- Kirk Brooks San Francisco, CA === *We go vote - they go home* ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Execute on Server Method Attribute
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 J. Orth via 4D_Tech > <4d_tech@lists.4d.com> 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) Variable > 6. Pointer To Array > 7. Pointer To Array > 8. Pointer To Array > 9. Pointer To Array > > When the method is called and executed on the Server, I'm getting an error: > > Accessing a parameter that does not exist > > If I turn off the EOS attribute, the method runs fine, so what am I missing > here and why can't the server access the parameters I'm passing? > > BTW, this is V16.3 running compiled... ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: WP SET ATTRIBUTES
Hi Tim, I'm sending 4 Attributes (two pairs) plus the target object, so that seems correct to me ... WP SET ATTRIBUTES ( targetObj ; attribName ; attribValue {; attribName2 ; attribValue2 ; ... ; attribNameN ; attribValueN} ) On Sat, 14 Jul 2018 at 19:51, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > The WP SET ATTRIBUTES command needs 5 parameters. You are trying to send > it only 2 parameters. > > Tim > > Sent from my iPad > > > On Jul 14, 2018, at 10:12 AM, Pat Bensky wrote: > > > > Using v17 > > This works: > > > > *WP SET ATTRIBUTES*(oCurrentRange;wk font;"Arial";wk font size;14) > > > > so why doesn't this: > > > > $attributes:=wk font+";"+*Char*(34)+"Arial"+*Char*(34)+";"+wk font size > > +";14" > > > > *WP SET ATTRIBUTES*(oCurrentRange;$attributes) > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Execute on Server Method Attribute
Doug, Thanks, that is the approach I'm taking now... We will see. Steve -Original Message- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Douglas von Roeder via 4D_Tech Sent: Saturday, July 14, 2018 3:26 PM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Douglas 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 method — retype the code (that's based on a concern about "gremlins in the method"). -- Douglas von Roeder 949-336-2902 ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
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 method — retype the code (that's based on a concern about "gremlins in the method"). -- Douglas von Roeder 949-336-2902 On Sat, Jul 14, 2018 at 12:11 PM Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Tim, > > Hey, hope all is going well with you! > > I've done all this and having no luck. I've written 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_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. Change the > parameter declarations too. Just for testing purposes. Test it. If it does > not generate an error with 1 parameter, add a second parameter and test > again. > > Tim > > Sent from my iPad > > On Jul 14, 2018, at 2:00 PM, Stephen J. Orth wrote: > > > 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 > > outlined, so why is Server having an issue running this method? > > > > Any input is GREATLY appreciated!!! > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > 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) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Execute on Server Method Attribute
Tim, Hey, hope all is going well with you! I've done all this and having no luck. I've written 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_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. Change the parameter declarations too. Just for testing purposes. Test it. If it does not generate an error with 1 parameter, add a second parameter and test again. Tim Sent from my iPad On Jul 14, 2018, at 2:00 PM, Stephen J. Orth wrote: > 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 > outlined, so why is Server having an issue running this method? > > Any input is GREATLY appreciated!!! ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
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. Change the parameter declarations too. Just for testing purposes. Test it. If it does not generate an error with 1 parameter, add a second parameter and test again. Tim Sent from my iPad On Jul 14, 2018, at 2:00 PM, Stephen J. Orth wrote: > 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 > outlined, so why is Server having an issue running this method? > > Any input is GREATLY appreciated!!! ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: WP SET ATTRIBUTES
The WP SET ATTRIBUTES command needs 5 parameters. You are trying to send it only 2 parameters. Tim Sent from my iPad > On Jul 14, 2018, at 10:12 AM, Pat Bensky wrote: > > Using v17 > This works: > > *WP SET ATTRIBUTES*(oCurrentRange;wk font;"Arial";wk font size;14) > > so why doesn't this: > > $attributes:=wk font+";"+*Char*(34)+"Arial"+*Char*(34)+";"+wk font size > +";14" > > *WP SET ATTRIBUTES*(oCurrentRange;$attributes) ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Execute on Server Method Attribute
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 outlined, so why is Server having an issue running this method? Any input is GREATLY appreciated!!! Steve -Original Message- From: Stephen J. Orth [mailto:s.o...@the-aquila-group.com] Sent: Saturday, July 14, 2018 9:13 AM To: 4D iNug Technical (4d_tech@lists.4D.com) <4d_tech@lists.4D.com> Subject: Execute on Server Method Attribute 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) Variable 6. Pointer To Array 7. Pointer To Array 8. Pointer To Array 9. Pointer To Array When the method is called and executed on the Server, I'm getting an error: Accessing a parameter that does not exist If I turn off the EOS attribute, the method runs fine, so what am I missing here and why can't the server access the parameters I'm passing? BTW, this is V16.3 running compiled... Thanks in advance! Best, Steve ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Why won't Help Tip editor accept Carriage Return?
also for the record, this problem exists in v13.6 in windows as well as macOS. the copy & paste solution helps. closing and reopening the help tips window also generally clears the issue for a while. Alan On Tue, Jun 12, 2018 at 7:48 AM Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > We manage help tips this way: > - For each object, select the On Mouse Enter form event > - We have a Help Tip named "HelpText" which simply contains a variable, > tHelpText. Select that Help Tip for each object. > - On the object, populate the tHelpText variable in the On Mouse Enter form > event. > > With this scheme, you can customise your help tips in lots of creative ways > - e.g. depending on whether the user is on Mac or Windows, what day of the > week it is, what level of access the user has, or whatever. I also find it > much easier to manage the tips as you don't have to deal with a long list > of Help Tips. > > Pat > > Pat > > > On Tue, 12 Jun 2018 at 06:32, Keisuke Miyako via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > for the record, problem does not exist for v14 or later. > > > > this is basically a compatibility issue between macOS 10.8/9 and 13.6 > > (evidently a regression from 13.5, really sorry about that...), > > which was released in the first half of 2015. > > > > > 2018/06/12 13:22、Dan Ivy via 4D_Tech <4d_tech@lists.4d.com> のメール: > > > > > > I agree with Doug about where this is coming from. Also as a workaround > > I had > > > success using a text editor to create the help text with carriage > returns > > > and then paste it into the 4D help editor. After that 4D seems to allow > > > returns to be added or deleted from the text displayed in the help > > editor. > > > > > > > > ** > > 4D Internet Users Group (4D iNUG) > > FAQ: http://lists.4d.com/faqnug.html > > Archive: http://lists.4d.com/archives.html > > Options: https://lists.4d.com/mailman/options/4d_tech > > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > > ** > > > > -- > * > CatBase - Top Dog in Data Publishing > tel: +44 (0) 207 118 7889 > w: http://www.catbase.com > skype: pat.bensky > * > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > 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) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
standard action for design mode not working in 17.0
I converted a structure from 16.3HF4 to 17.0. A button that worked in version 16 to open design mode (standard action = design), does not work in version 17. It shows the list of files application window, but keeps the startup menubar set for the runtime environment. Anyone seen or solved this? For now, I changed the database setting to startup in Design instead of Runtime as a work-around. Thanks John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Execute on Server Method Attribute
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) Variable 6. Pointer To Array 7. Pointer To Array 8. Pointer To Array 9. Pointer To Array When the method is called and executed on the Server, I'm getting an error: Accessing a parameter that does not exist If I turn off the EOS attribute, the method runs fine, so what am I missing here and why can't the server access the parameters I'm passing? BTW, this is V16.3 running compiled... Thanks in advance! Best, Steve * Stephen J. Orth The Aquila Group, Inc. Office: (608) 834-9213 P.O. Box 690 Mobile: (608) 347-6447 Sun Prairie, WI 53590 E-Mail: s.o...@the-aquila-group.com * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Who’s the Gestapo?
Hello World! Sent from my iPhone > On Jul 14, 2018, at 6:22 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > and ... What did they post that got them blocked? > > On Sat, 14 Jul 2018 at 05:34, Robert ListMail via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I tried to turn on a few young developers to 4D and suggested they join >> the list. They were never able to post. I take it the list is highly >> censored based on the feedback I’ve received. I didn’t know the bar was >> that high. So, who’s the gatekeeper...? >> >> Thanks, >> >> Robert >> >> Sent from my iPhone >> ** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** > > > > -- > * > CatBase - Top Dog in Data Publishing > tel: +44 (0) 207 118 7889 > w: http://www.catbase.com > skype: pat.bensky > * > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > 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) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
WritePro - how to apply columns to a range?
Using v17 ... A document can be set into columns by calling: *WP SET ATTRIBUTES*( wpDoc ;wk column count; 2 ) But I want to apply columns to a range of text, not the whole document. This doesn't work: *WP SET ATTRIBUTES*(oCurrentRange;wk column count; 2 ) I get the error: attribute '112' is not allowed in this context. So, how does one apply columns to a range of text? Or a section? PB -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: How to protect JS Source Code?
There is not much you can do. Javascript can be minimized and obfuscated, but there are plenty of tools to reverse that. John DeSoi, Ph.D. > On Jul 13, 2018, at 11:38 PM, Robert ListMail via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > One of the beauties of 4D is that the source code can be delivered in a > compiled form which more than obfuscates the code. So, if you have a full > JavaScript stack application running on the customers server, not merely > hosted solution, how can the source code (mostly JS) be protected? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Who’s the Gestapo?
and ... What did they post that got them blocked? On Sat, 14 Jul 2018 at 05:34, Robert ListMail via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I tried to turn on a few young developers to 4D and suggested they join > the list. They were never able to post. I take it the list is highly > censored based on the feedback I’ve received. I didn’t know the bar was > that high. So, who’s the gatekeeper...? > > Thanks, > > Robert > > Sent from my iPhone > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **