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?
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
On this site you can paste in a properly formatted JSON and the site will
infer the schema. The
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.
the recommended way to so this in 4D is to use JSON Validate.
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.
I do not use objects - not up to a version of 4D that supports them,
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
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
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
Mail list logo