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
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
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
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.
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
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
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
7 matches
Mail list logo