4D Object To BLOB/TEXT/Document

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

4D Object To BLOB/TEXT/Document

4D Tech mailing list
G'day All,

Does someone has a solution to save a 4D Object somehow to a file?

I like to be prepared for a dark future without Aparajita's ObjectTools.

Thanks

Cheers
Jörg

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: 4D Object To BLOB/TEXT/Document

4D Tech mailing list
Jorg,

JSON Stringify converts an object into plain text. So you can use:

TEXT TO DOCUMENT($docPath;JSON Stringify($myobject))


The syntax of Object Tools is very similar to 4D's. Not the object notation
part but the basic OB SET and OB get. I have converted lots of methods
using my text editor and a couple of regex patterns.

On Mon, Sep 16, 2019 at 11:51 PM Jörg Knebel via 4D_Tech <
[hidden email]> wrote:

> G'day All,
>
> Does someone has a solution to save a 4D Object somehow to a file?
>
> I like to be prepared for a dark future without Aparajita's ObjectTools.
>
> Thanks
>
> Cheers
> Jörg
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[hidden email]
> **********************************************************************



--
Kirk Brooks
San Francisco, CA
=======================

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: 4D Object To BLOB/TEXT/Document

4D Tech mailing list
Kirk,

> On 17 Sep 2019, at 17:10 AEST, Kirk Brooks via 4D_Tech <[hidden email]> wrote:
>
> JSON Stringify converts an object into plain text. So you can use:
>
> TEXT TO DOCUMENT($docPath;JSON Stringify($myobject))

Thanks for that.

Cheers
Jörg
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************