Skip to content

FormDataToValue method call (FormDataToValue)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL Info Yes 5 badpractice

Description

In most cases, you should use the FormAttributeToValue method, instead of the FormDataToValue.

The recommendation is due to considerations of unification of the application code and the fact that the syntax of the FormAttributeToValue is simpler than FormDataToValue.

Examples

Procedure Test()
    Form=Doc.GetForm("DocumentForm");
    FD = Form.FormDataToValue(Object, Type("ValueTable"));
EndProcedure

Sources

Source: Using of FormAttributeToValue and FormDataToValue methods (RU)

Snippets

Diagnostic ignorance in code

// BSLLS:FormDataToValue-off
// BSLLS:FormDataToValue-on

Parameter for config

"FormDataToValue": false