Source: factory.field/package.core/BaseFieldOption.py
Base class for fields that load options from
SQL queries, HTTPS callbacks, or static lists.
Provides composable helpers for query resolution,
SQL fetching, and HTML option building. Children
...
| Method | Signature | Description |
|---|---|---|
| resolve_query | resolve_query() |
Patch query params and set up remote |
| restore_db | restore_db() |
Restore DB connection after a remote |
| fetch_options_sql | fetch_options_sql() |
Execute SQL query and populate |
| fetch_options_callback | fetch_options_callback() |
Check if HTTPS callback is configured |
| build_html_options | build_html_options(placeholder = '') |
Build |
| render_rpc_script | render_rpc_script() |
Generate JS that calls /formrpc/ when |