Pictures Outside Datafile - Calculate Path

2018-10-04 Thread Justin Will via 4D_Tech
I have a picture field where I have the property checked that tells 4D to store the pictures outside the datafile. The folder/file structure of these pictures is not apparent. Is there a way to calculate where a picture for a particular table and field is within that structure? Thanks Justin

Re: Defining and documenting Objects

2018-10-04 Thread Kirk Brooks via 4D_Tech
If anyone is a little intimidated about writing JSON validation schema from scratch (I am) there are some online resources to assist. One that's particularly easy to use is https://www.jsonschema.net/ On this site you can paste in a properly formatted JSON and the site will infer the schema. The

Re: Defining and documenting Objects

2018-10-04 Thread Keisuke Miyako via 4D_Tech
as a general rule, if objects are meant to share a common structure, the choice should be to use a record, not a single object field. the closest thing we have to a "class" in 4D is a table, not an object. http://doc.4d.com/4Dv17/4D/17/Dataclasses.300-3777698.en.html 2018/10/04 23:24、Chip

Re: Defining and documenting Objects

2018-10-04 Thread Keisuke Miyako via 4D_Tech
the recommended way to so this in 4D is to use JSON Validate. http://doc.4d.com/4Dv17/4D/17/JSON-Validate.301-3730393.en.html the structure of an object can be defined using a JSON schema, a blueprint of a class of object, itself written in JSON. kind of like what XSD or DTD are to XML.

Re: Defining and documenting Objects

2018-10-04 Thread Chip Scheide via 4D_Tech
I do not use objects - not up to a version of 4D that supports them, yet. My thought on handling documentation of an object's contents... this is probably worth what you are paying for it... :) 1 - In every system, or component install a comment only method outlining your conventions. This

Re: Defining and documenting Objects

2018-10-04 Thread Paul Dennis via 4D_Tech
Thanks Kirk, I was afraid you were going to say that. Ive got multiple developers on our app all with different habits plus me and I am the worst. I have to give this some thought. -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html

Re: Defining and documenting

2018-10-04 Thread Douglas Cryer via 4D_Tech
Paul, I think I get where you are coming from. With a defined structure, table and field names it is fairly easy to see what the model is. What you see is pretty much what you get. Introduce objects and you suddenly have hidden data structures. Indeed those data structures can vary by