set_reference_field
Sets a CatalogRef field to a typed catalog name by replaying a captured 1C reference-input session; the value must match the captured name's character length.
Instructions
Set a CatalogRef field to value (a catalog element NAME, e.g. "Пантера АО") natively. A reference
InputField resolves a TYPED name to a ref (выбор по строке) on focus-change; the typed name rides the wire as
e0 41 81 81 b7 <char-count><utf-16le name><space pad> (the value-SET family with a UTF-16 choice value). This
faithfully replays the genuine reference-input session from capture (open form -> type captured_value
into field -> focus-change commit -> read-back), re-targeting the UTF-16 name to value. Commit is
confirmed by the resolved presentation reading back. Returns {field, value, committed}. CONSTRAINT: value
must currently be the SAME character length as captured_value (the field's edit buffer is length-fixed — same
fixed-width limit as the string write; a variable-length ref name does not commit yet). Re-capture with a
same-length name for other lengths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| field | No | Контрагент | |
| value | No | Корнет ЗАО | |
| capture | No | genuine-card96-ref-20260618/traffic | |
| captured_value | No | Корнет ЗАО |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||