Architecture

Options - Sidebar-Links

TODO:
Need “form_type_id” to know
add
edit
view
The “href” is built at the time of saving
via sql proc OR via the API

but we should able to regen these
for when they are based on having view_id
when for table_id then it will only use the {{rec_id}} and other rec cols
so could use {{fields.rec_type_id}} (for example)
Setup the API and call in the Form Service to get the Sidebar links
could also be returned as a Handlebars template as part of the form
they are returned as complete HTML so that we can just replace the Sidebar HTML
When we Init the Main/Top-Level Form in the Form Service / form.js
then we pass in the “optionsHtml” that we then run the same handlebars
make sure that we have the “v_t_id_[v_t_id]” in the formData object to access the rec_ids for each of the view_tables


Documentation

is_rec_id_req = can be either rec specific or generic so shown on the Overview/List
when table_id = ‘config’
then it means its a generic-system-wide option
like "Regen-All"
option_types:
0: Developer - Special Options/Links
1: Sidebar - Regular
2: Sidebar - Advanced Options
3: Tabs
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.