Re: Save As using memorized path and suggested file name

2017-08-22 Thread Keisuke Miyako via 4D_Tech
for that, I think you are over-thinking it, just lookup the DOCUMENT system variable which contains the full path. > 2017/08/23 4:10、Steve Slanec via 4D_Tech <4d_tech@lists.4d.com> のメール: > then I could get the path, append the suggested file name, and pass the whole > string to Select document()

Re: 4D and Git Connection

2017-08-22 Thread John DeSoi via 4D_Tech
> On Aug 22, 2017, at 9:39 AM, Drew Waddell via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Yeah, it's incredibly noisy but we only keep the information around for a > release, then we fire up a new Git repo for the next one. Like I said it's > not perfect, far from it honestly, but it gives

Re: Save As using memorized path and suggested file name

2017-08-22 Thread Keisuke Miyako via 4D_Tech
on mac I think the settings can be found in /Users/{me}/Library/Preferences/com.4d.4d.plist in other words you can retrieve it with defaults https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/defaults.1.html 2017/08/23 4:10、Steve Slanec via 4D_Tech

Re: Using SVG for button graphics

2017-08-22 Thread Jody Bevan via 4D_Tech
Kirk: The way we did this was to have one picture object on the form for our button palette. When we built the button pallet we created the SVG on the fly and positioned the buttons where we wanted them to go. We did this because we controlled through security what buttons were available for

Re: Using SVG for button graphics

2017-08-22 Thread Kirk Brooks via 4D_Tech
Keith, On Tue, Aug 22, 2017 at 3:54 PM, Keith Culotta via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I think your are right about that. A button is a numeric value. The > button's picture is an [appendage?] that needs a source. Didn't someone > come up with a way to "create" variables at

RE: Running PHP scripts from 4D

2017-08-22 Thread Timothy Penner via 4D_Tech
Hi Sujit, You can try using PHP EXECUTE but it may not have the required modules required by the script. http://livedoc.4d.com/4Dv15.4/help/Title/en/page2802.html You mentioned running the PHP script through Apache and running it from the browser, but then you also mention CRON. I assume that

Re: Using SVG for button graphics

2017-08-22 Thread Keith Culotta via 4D_Tech
I think your are right about that. A button is a numeric value. The button's picture is an [appendage?] that needs a source. Didn't someone come up with a way to "create" variables at runtime? Keith - CDI > On Aug 22, 2017, at 5:30 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> >

Re: Using SVG for button graphics

2017-08-22 Thread Kirk Brooks via 4D_Tech
Keith, I'm trying to avoid using process vars, on one hand, and a separate var for the button image, on the other. Pushing the envelope for totally portable code on forms, I guess. The stuff I'm doing is very simple (things like plus signs, the small triangular arrows in round buttons, that sort

Re: Using SVG for button graphics

2017-08-22 Thread Keith Culotta via 4D_Tech
This got somewhere, but "pic" has to be a process variable, and can't be cleared (pic:=pic*0). $svg:=SVG_New SVG_New_rect ($svg;1;1;4;4) pic:=SVG_Export_to_picture ($svg) $format:="1;1;pic;0" OBJECT SET FORMAT(OBJECT Get pointer(Object named;"Button")->;$format) SVG_CLEAR ($svg) Keith - CDI >

Re: Using SVG for button graphics

2017-08-22 Thread Keith Culotta via 4D_Tech
Saved as a method? ..that draws the selected button and returns a picture to the form object object get pointer(object named;"myButton")->:= draw_Pic("okbutton") Haven't tried it Keith - CDI > On Aug 22, 2017, at 4:56 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi

Running PHP scripts from 4D

2017-08-22 Thread Sujit Shah via 4D_Tech
I have a few scripts that run on an Apache server with the relevant SDK. I can run these scripts manually from the browser. The result "echo" ed to the console. Currently, it is run from a Cron Job but I would like to run it on demand from 4D and return the result. What would be the best way to

Using SVG for button graphics

2017-08-22 Thread Kirk Brooks via 4D_Tech
Hi folks, I'm playing around with some SVG to create simple button graphics and icons. How can I set an SVG object as the picture source for a button without writing it to a file or saving it in a process var? Many thanks -- Kirk Brooks San Francisco, CA === *The only

Get notification when there is a Backup Error

2017-08-22 Thread Jody Bevan via 4D_Tech
Ferdinando: I have sent the contents of the On Backup Shutdown method that we use. When the backup quits for what ever reason, we determine the results. We then send a message to the System Admins (and any others needed) to let them know. I have sent it as an Exported 4D method. Let me know

Re: Save As using memorized path and suggested file name

2017-08-22 Thread Steve Slanec via 4D_Tech
Thanks for your suggestion. Sorry, I should have stated my environment: 4D v16.1hf2 Mac OS X 10.11.6 The problem is I want to use a “memorized path” as documented in the Select document command, which states that if you pass a number instead of a path as the first parameter, then 4D will use

Re: 4D Server v11 License

2017-08-22 Thread Charles Miller via 4D_Tech
This will work but I am not the person looking to buy. Regards Chuck Sent from my iPhone > On Aug 22, 2017, at 6:16 AM, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi Chuck, > > Maybe you can ask your 4D rep if you can buy v15 license with maintenance > contract

RE: 4D and Git Connection

2017-08-22 Thread Drew Waddell via 4D_Tech
Yeah, it's incredibly noisy but we only keep the information around for a release, then we fire up a new Git repo for the next one. Like I said it's not perfect, far from it honestly, but it gives us something which is more than what is currently capable in native 4D. Drew -Original

Re: 4D and Git Connection

2017-08-22 Thread Nigel Greenlee via 4D_Tech
Neil. I would be interested in getting some info on doing this. I would like to move my repositories from local stores to a github. When i tried to set it up i was getting a problem with MaxBuffer size(not sure if I need to start with an empty(ish) directory on the local drive. Anything you

RE: 4D and Git Connection

2017-08-22 Thread Epperlein, Lutz (agendo) via 4D_Tech
We use this component daily: https://github.com/elutz/vc-framework-v15 After export, which happens instantaneously, the changes are committed into a Mercurial VCS. We do the check in manually, but it would be possible to define hooks to do an automatic check in. All is explained on the github

Re: 4D and Git Connection

2017-08-22 Thread Lee Hinde via 4D_Tech
When are you doing your commits? With each method? Daily? Neil suggested he was looking for incremental commits. Which seems ‘noisy’. > On Aug 22, 2017, at 9:00 AM, Drew Waddell via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have done this. I used Macros to run methods that would commit

RE: 4D and Git Connection

2017-08-22 Thread Drew Waddell via 4D_Tech
I have done this. I used Macros to run methods that would commit the text of the methods edited to a Git repo, there is an on save event. It's definitely not perfect but it helps my team track changes and look up potentially "ghost" changes in our codebase. Drew Waddell Development Team Lead

Re: 4D_Tech Digest, Vol 123, Issue 35

2017-08-22 Thread stardata.info via 4D_Tech
Hi Jody, Please send again. Thanks /Ferdinando/ Il 21/08/2017 17:48, 4d_tech-requ...@lists.4d.com ha scritto: Message: 12 Date: Mon, 21 Aug 2017 07:08:13 -0600 From: Jody Bevan To: 4D iNug Technical<4d_tech@lists.4d.com> Subject: Re: Backup failure

Re: 4D Server v11 License

2017-08-22 Thread Koen Van Hooreweghe via 4D_Tech
Hi Chuck, Maybe you can ask your 4D rep if you can buy v15 license with maintenance contract and ask for a v11 license as temporary solution? HTH Koen > Op 22 aug. 2017, om 11:54 heeft Chuck Miller via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > They can not be legit buying

Re: Cross platform JSON Problem

2017-08-22 Thread Clive Wilson via 4D_Tech
I guess my old brain is starting to falter. I still cannot get this right. Still battling with this problem. Please forgive my ignorance. Using Windows 7 Pro (Same as my clients) On "https://github.com/miyako/4d-plugin-json;, I download the zip & then copy the JSON.bundle from

Re: 4D Write PRO how to ...

2017-08-22 Thread Two Way Communications via 4D_Tech
Hi Keith, Thanks… looks like we will have to wait a bit longer to resolve expressions in the headers… Regards, Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 15:31, Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > Maybe not super useful,

Re: 4D Write PRO how to ...

2017-08-22 Thread Two Way Communications via 4D_Tech
Thx Koen, I had a look myself at the 4DWRPRO object in the debugger and like you say, not much there that could be useful… Regards, Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 15:22, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >

4D and Git Connection

2017-08-22 Thread Dennis, Neil via 4D_Tech
I recall that someone has worked with Git as a 4D code repository but I don't exactly remember where I heard it. I'm looking to automatically check out and check in 4D methods to Git as they are modified via a 4D client. To give you the full picture we want to use TFS and single sign on to

Re: 4D Write PRO how to ...

2017-08-22 Thread Keith Culotta via 4D_Tech
Maybe not super useful, but this: WP EXPORT VARIABLE(waAreaPtr->;$destination;wk web page html 4D;wk html debug) SET TEXT TO PASTEBOARD($destination) gives this result: http://www.w3.org/1999/xhtml; xmlns:d4="http://www.4D.com;> 4D Write Pro New Document

Re: Save As using memorized path and suggested file name

2017-08-22 Thread Chip Scheide via 4D_Tech
I am not in a position to look in detail, however, it is possible to specify a memorized path. This path is the 'default' path used when an open/save dialog is presented Then in the open/save dialog you can specify a specific file name > Does anybody know if there is a way to present a Save As

Re: 4D Write PRO how to ...

2017-08-22 Thread Koen Van Hooreweghe via 4D_Tech
Rudi, Probably not for the faint-hearted! But I think it is not possible to access a 4D Write Pro object’s contents and you’re limited to the ST and WP commands. I did a quick test: C_OBJECT($wpObject) C_TEXT($jsonText) $wpObject:=WP New ST SET TEXT($wpObject;"Hello World!") TRACE

Re: 4D Write PRO how to ...

2017-08-22 Thread Two Way Communications via 4D_Tech
Damn it ;-) Would we be able to check the actual 4D Write PRO object and manipulate it? After all, it is a C_Object… Regards, Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 12:13, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi

Re: 4D Write PRO how to ...

2017-08-22 Thread Koen Van Hooreweghe via 4D_Tech
Hi Rudi, Same issue, which makes 4D Write Pro for me a no go (yet). Koen > Op 21 aug. 2017, om 13:55 heeft Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > Using the old 4D Write, I loop through all the frames (frames 1-> 7), using > ‘WR SET FRAME’ .

Re: 4D Server v11 License

2017-08-22 Thread Chuck Miller via 4D_Tech
They can not be legit buying license in this way Regards Chuck Sent from my iPhone > On Aug 21, 2017, at 9:06 PM, Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi, thanks for your replies. > The reason why the customer needs v11 server is this These are new > users from a

Re: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-22 Thread Koen Van Hooreweghe via 4D_Tech
Hi all, Just a quick tip. If you get tons of errors on local variables when ‘All variables are typed’ is turned on (like me, when I checked this in a 20 year old project), it might be impossible to continue normal development for a while. 4DPop might be the right tool to make the transition

Re: Save As using memorized path and suggested file name

2017-08-22 Thread Koen Van Hooreweghe via 4D_Tech
Hi Steve, Which 4D version? Mac or Windows? There should be no difference, but I tested it on Mac using v15. $path:=“Macintosh HD:Users:myname:Dektop:filename.txt” $path:=Select document($path;”text”;””;File name entry) The Save As dialog opens in this case the desktop and sets the file name as

Re: 4D Write PRO how to ...

2017-08-22 Thread Two Way Communications via 4D_Tech
Thanks Justin, I was afraid I would get this answer… Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 04:03, Justin Carr via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > On 21 Aug 2017, at 9:55 pm, Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com>