Re: Macro anyone?

2017-05-31 Thread Robert Livingston via 4D_Tech
The final 100 yards using Bob Finnerty's suggestion - (Hey! Finnerty. Glad to see still working with 4D!) 1. Here is the code (non-pseudo) that you place in your project as a Project Method: here called SortMethod. Paste this text in and save it. // PROJECT METHOD: SortMethod //

Re: Component and 4dd file

2017-05-31 Thread David Adams via 4D_Tech
Andreas, Thanks for the kind offer. Miyako sorted out my conceptual gap. What I was not understanding is that you need three files: Component.4DC ExternalData.4DB <--- This is what I was neglecting ExternalData.4DD In my case, ExternalData.4DB is really just Component.4DB. But they're serving

Re: "This component protected method cannot be edited." - but it's not a component method

2017-05-31 Thread David Adams via 4D_Tech
> Check the “Access” of the method. Also, I’ve found the batch edit option only works for the Designer log in. Ding! Thanks Floyd, I think that's it. I'm in with design access, but not in as Designer. I guess that could be what's making the difference. On Thu, Jun 1, 2017 at 4:58 AM, Floyd

Re: 4D web server protected by a proxy server - pdfs don't come through

2017-05-31 Thread Jim Hays via 4D_Tech
Yes. Most answers say something like replace (pseudo code) target="_blank" with target="_document", and make it download instead of display in browser. It has the same problem though. I few messages said there was a bug in Chrome some years ago, but this happens with multiple browsers. Tomorrow

Re: 4D web server protected by a proxy server - pdfs don't come through

2017-05-31 Thread Keisuke Miyako via 4D_Tech
did you Google for that error message? 2017/06/01 6:52、Jim Hays via 4D_Tech <4d_tech@lists.4d.com> のメール: "Resource interpreted as Document but transferred with MIME type application/pdf" ** 4D

4D web server protected by a proxy server - pdfs don't come through

2017-05-31 Thread Jim Hays via 4D_Tech
tl;dr PDFs served by 4D v12 open in a new browser tab as expected from the same machine, and also from other machines on the LAN. When accessed from a machine in the DMZ, not on the LAN, we can navigate the site, but the PDFs don't come over. It seems like the OS firewall or WebRoot antivirus

Re: Thanks and Goodbye

2017-05-31 Thread Tom Dillon via 4D_Tech
Joshua, If you're still going to be doing 4D, you should follow the 4D Tech NUG List of Happiness (that's what, I'm sure, everyone calls it now) since it's probably the best place to get 4D job postings. Also, unless you're pretty well planted where you currently are, pick a place you'd love

[4DTidbits] New Post : Fun with Backups

2017-05-31 Thread Herr Alexander Heintz via 4D_Tech
Hi Folks, here is something new from my never ending collection of components: AC_BackupTools http://blog.heintz.net/to-backup-or-not-to-backup/ Enjoy, feedback welcome. Cheers Alex

Re: GET PRINT OPTION value2 typing

2017-05-31 Thread John Baughman via 4D_Tech
I just answered my own question. Just use 2 different variables. Duhhh. That being said, the compiler never complained before. Why now. John > On May 31, 2017, at 9:07 AM, John Baughman wrote: > > The compiler in v16 is complaining that the 3rd parameter in GET PRINT

GET PRINT OPTION value2 typing

2017-05-31 Thread John Baughman via 4D_Tech
The compiler in v16 is complaining that the 3rd parameter in GET PRINT OPTION type is unknown.It can either be a longint or text value so how do you type the variable? In my particular case the answer is easy as I am only using it to get the destination option so can type it as text. What do

Re: "This component protected method cannot be edited." - but it's not a component method

2017-05-31 Thread Floyd Zink via 4D_Tech
David, It’s not a very good error message as in my experience it has nothing to do with components. Check the “Access” of the method. Also, I’ve found the batch edit option only works for the Designer log in. Floyd Zink QMed Corporation From: 4D_Tech

[no subject]

2017-05-31 Thread Andreas Overmeyer via 4D_Tech
David I will pay 100 bucks, if you include me in your code manager beta list, if you create one:) Andreas > Am 28.05.2017 um 19:19 schrieb 4d_tech-requ...@lists.4d.com: > > Right now if you want to make a really efficient, reliable and > easy-to-extend form code manager,

Component and 4dd file

2017-05-31 Thread Andreas Overmeyer via 4D_Tech
David Please publish a small example on dropbox von unterwegs gesendet > Am 29.05.2017 um 10:56 schrieb 4d_tech-requ...@lists.4d.com: > > I've got a simple setup with a component that includes a .4DD file. I want > the component to open up and use the data file. I've gotten this working > when

Re: USE DATABASE from 4D client

2017-05-31 Thread Alan Chan via 4D_Tech
I might be missing something obvious. Why not simply using SQL login to access external database and the data could be accessed by multiple 4D clients. SQL LOGIN($externaAddress;$user;$pswd;*) If (OK=1) Begin SQL //do whatever SQL query End SQL SQL LOGOUT End if Alan Chan 4D iNug Technical

TEXT TO ARRAY won't break solid text

2017-05-31 Thread Don Lapin via 4D_Tech
Does anyone know how to measure the size of an unbroken text string, in a particular font, size, etc, such as -- "P201+P373+P401+P502" In a 4D Write area with two tabs (v14 Windows), I would like to see -- P201 Item stored under refrigerated conditions P201+P373+P401+P502 Item

"This component protected method cannot be edited." - but it's not a component method

2017-05-31 Thread David Adams via 4D_Tech
Weird one. I've got a database and I want to make a batch modification of an attribute. (I want to set everything invisible and then show the handful of methods useful in user and the 4D editors.) But I'm getting the error "This component protected method cannot be edited." But I'm not