RE: Structure to TEXT files... GitHub

2018-10-17 Thread Epperlein, Lutz (agendo) via 4D_Tech
> So, could this structure data not be used to create a new 4D database?  Can 
> it be
> imported back into 4D…?

This question hits the nail on the head. So you can export all your code and 
the forms into text files and commit them into a source code revision system 
like git or hg. But this doesn't make possible really team development at 
different locations and you aren't able to use the advantages of the mentioned 
source code systems called distributed repositories.

The usual workflow with such systems is that one developer does a check-in of 
his code, another developer checks out this code, merges the code with his own 
code, maybe resolving conflicts and checks in this modifications. And so on. 
This is a completely usual process during software developing. For developing 
web applications you can use this approach with 4D too. But if you want to use 
this for the native 4D code you are lost. It will not work even with the new 
feature of 4D V14R3 since it supports only exporting of code.

To solve this problem for us we use, now since several years, this component: 
https://github.com/elutz/vc-framework-v15
(or for V17 https://github.com/elutz/vc-framework-v17, but it's basically the 
same). The component is based on J. Fletcher's work 
(https://github.com/4D/vc-framework-v14).

This component saves your code into text files (methods and forms, it looks 
like the new V17R3 feature is based on this component) automatically if you 
save a method. So far so good and this isn't really a big difference to this 
new 17R3 feature. But we extended the component with the possibility to 
re-import the code changes. The process is described in the Readme, it is a bit 
complicated using this import comparing to other software developing processes 
but it works flawlessly. As I said we do this for some years with success.

Regards
Lutz

--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
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: Structure to TEXT files... GitHub

2018-10-17 Thread Patrick Emanuel via 4D_Tech
As I know, not yet for the moment, may be later V18 or 
V17R3 give us, for the moment, the capability to manage sources with  a
Version control system, like Hithub does.



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
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: Structure to TEXT files... GitHub

2018-10-16 Thread Robert ListMail via 4D_Tech
So, could this structure data not be used to create a new 4D database?  Can it 
be imported back into 4D…?

Thanks,

Robert

> On Oct 16, 2018, at 6:26 PM, Timothy Penner via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> It's in v17 R3
> https://blog.4d.com/text-files-from-your-structure-file/ 
> 
> 
> -Tim

**
4D Internet Users Group (4D iNUG)
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: Structure to TEXT files... GitHub

2018-10-16 Thread Robert ListMail via 4D_Tech
Hi Dani, yes, thanks for the reminder. I think I used your product once before. 
As I recall only methods are exported and that some resources that fully define 
the structure are not represented, do I have that right?  It looks like v17R3 
will export forms and all other resources. 

R

Sent from my iPhone

> On Oct 16, 2018, at 8:34 PM, Dani Beaubien 
>  wrote:
> 
> You can also use my free Code Analysis component. There are versions of the 
> component that work with 4D v12 and on. The code export works very well. You 
> can also use it to do a direct comparison from your structure to a previously 
> exported methods.

**
4D Internet Users Group (4D iNUG)
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: Structure to TEXT files... GitHub

2018-10-16 Thread Dani Beaubien via 4D_Tech
You can also use my free Code Analysis component. There are versions of the 
component that work with 4D v12 and on. The code export works very well. You 
can also use it to do a direct comparison from your structure to a previously 
exported methods.

It is possible to export the forms to json. The only downside with that I added 
that piece a few years back and I invented my own json scheme. It is not the 
same as what 4D v17 supports.

Here is a link to get more information and to download:
http://openroaddevelopment.com/projects_4dComponent_CodeAnalysis.html

Dani Beaubien
Open Road Development


> On Oct 16, 2018, at 5:26 PM, Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Okay, I just found the answer—super-cool!!!
> 
> From the blog: "All of the above scenarios are now possible! Beginning with 
> v17 R3, you can export the .4DB file into multiple text files. This offers 
> you many new possibilities."
> 
> Text files from your structure file – 4D Blog
>> https://blog.4d.com/text-files-from-your-structure-file/ 
>> 
> 
> Robert
> 
>> On Oct 16, 2018, at 6:18 PM, Robert ListMail via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Can you explain how to export my entire source code as shown in this video 
>> by “4D Software”? I don’t seem to have this command in 4D v17R2 or 15.6.
>> 
>> Export your structure file in multiple text files - YouTube
>>> https://www.youtube.com/watch?v=nQlO9bbKNJc=1s 
>>>  
>>> >> >
> 
> **
> 4D Internet Users Group (4D iNUG)
> 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)
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: Structure to TEXT files... GitHub

2018-10-16 Thread Timothy Penner via 4D_Tech
> I don’t seem to have this command in 4D v17R2 or 15.6.

It's in v17 R3
https://blog.4d.com/text-files-from-your-structure-file/

-Tim



**
4D Internet Users Group (4D iNUG)
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: Structure to TEXT files... GitHub

2018-10-16 Thread Robert ListMail via 4D_Tech
Okay, I just found the answer—super-cool!!!

From the blog: "All of the above scenarios are now possible! Beginning with v17 
R3, you can export the .4DB file into multiple text files. This offers you many 
new possibilities."

Text files from your structure file – 4D Blog
> https://blog.4d.com/text-files-from-your-structure-file/ 
> 

Robert

> On Oct 16, 2018, at 6:18 PM, Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Can you explain how to export my entire source code as shown in this video by 
> “4D Software”? I don’t seem to have this command in 4D v17R2 or 15.6.
> 
> Export your structure file in multiple text files - YouTube
>> https://www.youtube.com/watch?v=nQlO9bbKNJc=1s 
>>  
>> > >

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**