M
M
MODifikaTOR2019-11-09 11:17:16
1C
MODifikaTOR, 2019-11-09 11:17:16

How to change field type in add record form?

I'm making a database of equipment. There was a snag in the Components directory: the characteristics should be selected based on the type of component (RAM, cartridge, etc.). As I understand it, the mechanism of work should be as follows: I select the type of component from the enumeration, the event is triggered and the Characteristics field changes its type to the type EnumReference.enum1. Actually, the question is: do different types of one field in a record affect other records? And how can I implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2019-11-09
@fosihas

add to the procedure OnChanging Enumeration:
PriceTypeRetail = References["NomenclaturePriceTypes"].EmptyReference();
or
Elements.Attribute.TypeRestriction = New TypeDescription(...)
Or a variant in the selection procedure Characteristics disable the typical selection mechanism, and describe the opening of the desired form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question