form_tools_parquedit_handler module¶
- class AltinnFormParqueditHandler(conn)¶
Bases:
StandardDataHandler- Parameters:
conn (ParquEdit)
- get_history(refnr, insert_toogle)¶
Retrieves editing history log for a specific unit submission.
- Parameters:
refnr (
str) – Reference number.insert_toggle – Optional boolean switch to filter out initial insert rows.
insert_toogle (bool)
- Return type:
DataFrame- Returns:
A pandas DataFrame with history details.
- update_field_value(refnr, skjema, ident, period, value, old_value, settings, container, inputs, editing_code)¶
Updates the database value of a specific field.
- Parameters:
refnr (
str) – Reference number.skjema (
str|None) – Questionnaire schema name.ident (
str) – Respondent identifier.period (
str|None) – Statistical period.value (
Any) – The new updated value.old_value (
Any) – The previous field value.settings (
EditorSettings) – Active editor configuration settings.container (
FieldCallbackContainer) – The callback metadata wrapper containing the field settings.inputs (
list[Any] |dict[Any,Any]) – Wired input states.editing_code (
str|None) – Selected editing reason code.
- Return type:
Any- Returns:
The result of the database write operation.
- update_form_active_status(refnr, value)¶
Updates the active flag of a form submission.
- Parameters:
refnr (
str) – Reference number.value (
bool) – True if active, False otherwise.
- Return type:
None
- update_form_reception_comment(refnr, comment)¶
Updates or saves a comment associated with a form reference number.
- Parameters:
refnr (
str) – Reference number.comment (
str) – The comment text.
- Return type:
None
- update_form_status(refnr, status_code)¶
Updates the processing status of a form.
- Parameters:
refnr (
str) – Reference number.status_code (
Literal['Under behandling','Ferdig','Ubehandlet']) – New status value.
- Return type:
None