[Devel] [GIT] OpenBioMaps GIT repository, branch nested-upload-fields updated: dynamic select definition changed
git at vocs.unideb.hu
git at vocs.unideb.hu
Thu Jun 14 11:07:43 CEST 2018
The project "OpenBioMaps GIT repository":
The branch, nested-upload-fields has been updated
via eb7e9163d45365f0edc709e1f2d395e4030680d6 (commit)
from 45b4af4fb17d921501de2a58f19a86065adfe51c (commit)
- Log -----------------------------------------------------------------
commit eb7e9163d45365f0edc709e1f2d395e4030680d6
Author: Bóné Gábor <gabor.bone at milvus.ro>
Date: Thu Jun 14 11:59:00 2018 +0300
dynamic select definition changed
dynamic selects are now defined by the control and custom_function
columns of project_forms_data table.
- the control field has to be 'trigger'
- list definition: 'SELECT:table.value:label'
- custom function examples:
- parent: select_list(target_col,NULL)
- child & parent of next: select_list(target_col,foreign_key)
- child (list): select_list(NULL,foreign_key)
- child (text or geom): get_value(table.connecting_id:value_col)
eg: get_value(milvus_sampling_unit.obm_id:obm_geometry)
-----------------------------------------------------------------------
Summary of changes:
libs/afuncs.php | 84 ++++++++++++++++++++++++-----------------
libs/common_pg_funcs.php | 30 ++++++++++++++-
libs/js/functions.js | 80 ++++++++++++++++++++++++++++++++++++++-
libs/js/uploader.js | 69 ++++++---------------------------
libs/mod_project.php | 4 ++
libs/project_admin.php | 4 +-
libs/upload_show-table-form.php | 40 ++++++--------------
7 files changed, 186 insertions(+), 125 deletions(-)
--
OpenBioMaps GIT repository
More information about the Devel
mailing list