What an entity form shows, which of a form's errors it cannot show next to a field, and the child rows a parent is created with (BOU-570).
What an entity form shows, which of a form's errors it cannot show next to a field, and the child rows a parent is created with (BOU-570).
(child-param entity index field)The form parameter of field in child row index of entity.
The form parameter of `field` in child row `index` of `entity`.
(clear-removed data removed)data with each removed file cleared, unless the form chose a new one.
`data` with each `removed` file cleared, unless the form chose a new one.
(duplicate-row? rel values)Whether values hold two rows sent under one index: a field sent twice.
A checkbox sends its hidden "false" and, when checked, "true".
Whether `values` hold two rows sent under one index: a field sent twice. A checkbox sends its hidden "false" and, when checked, "true".
(filled-rows rel rows)The rows of rel in rows with something typed in them.
The rows of `rel` in `rows` with something typed in them.
Names each many-to-many key on the form, so one with nothing chosen, which submits nothing of its own, still empties its links.
Names each many-to-many key on the form, so one with nothing chosen, which submits nothing of its own, still empties its links.
The most rows of one has-many a create takes.
The most rows of one has-many a create takes.
(nested-relationships entity-config entity-configs)The has-many entries of entity-config whose children are created in the
parent's create form: editable, with a :min, and a child the admin can
create from a form. Each gets the child's config as :entity-config, its
foreign key as :fk, and as :fields the child's editable fields without it.
entity-configs maps entity name to config.
The has-many entries of `entity-config` whose children are created in the parent's create form: editable, with a :min, and a child the admin can create from a form. Each gets the child's config as :entity-config, its foreign key as :fk, and as :fields the child's editable fields without it. `entity-configs` maps entity name to config.
(no-file? v)A file input left empty: the browser still sends the part, with no name.
A file input left empty: the browser still sends the part, with no name.
(off-form-errors entity-config errors)The entries of errors ({field [message]}) on fields the form does not
show, so no input can carry them.
The entries of `errors` ({field [message]}) on fields the form does not
show, so no input can carry them.Names each file field whose stored file the form removes.
Names each file field whose stored file the form removes.
(shown-fields entity-config)The fields the entity form renders as a visible input, its many-to-many keys included.
The fields the entity form renders as a visible input, its many-to-many keys included.
(split-child-params params)params as [parent-params rows]: the parent's own fields, and
{child-entity [[index {field value}] ...]} in index order, with field
names as strings, as a form submits them. A __child. parameter whose
index is not a small number is dropped.
`params` as [parent-params rows]: the parent's own fields, and
{child-entity [[index {field value}] ...]} in index order, with field
names as strings, as a form submits them. A `__child.` parameter whose
index is not a small number is dropped.(split-link-params entity-config params)params as [params links]: the params without the many-to-many keys of
entity-config, and {key [id ...]} for each key submitted or named in
links-param, empty when nothing is chosen. The service cleans the ids.
`params` as [params links]: the params without the many-to-many keys of
`entity-config`, and {key [id ...]} for each key submitted or named in
`links-param`, empty when nothing is chosen. The service cleans the ids.(split-remove-params entity-config params)params as [params removed]: without remove-file-param, and the file
fields it names.
`params` as [params removed]: without `remove-file-param`, and the file fields it names.
(too-few rels rows){child-entity {:min :count :label}} for each of rels given fewer filled
rows than its :min.
{child-entity {:min :count :label}} for each of `rels` given fewer filled
rows than its :min.(too-many rels rows){child-entity {:max :count :label}} for each of rels given more rows
than max-child-rows, blank ones included: each is parsed.
{child-entity {:max :count :label}} for each of `rels` given more rows
than `max-child-rows`, blank ones included: each is parsed.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |