Answer the question
In order to leave comments, you need to log in
Why are the restrictions on the values for the input field in the form of a lookup element not working?
1C 8.3, SCP 1.3 (regular application).
Created on the form of the element of the directory the input field of the Security Class and associated it with the attribute of the directory of the same name. I also made this field available only when the Laser Marking checkbox is checked . In addition, I set the minimum and maximum values for this field (I set the same minimum and maximum values for the attribute).
The problem is that it doesn't work.
I go in user mode and when opening the form of the directory element I see the following: The SecurityClass
field is 0, although it cannot be there. Moreover, if I make all the fields active by clicking on the checkmark, and then click OK, the form will close, and 0 will remain in the attribute.
It would be desirable that 0 could not stand in the SecurityClass field at all , regardless of its availability on the form.
Maybe the problem is that in the properties of the attribute ClassProtection of the directory there is a field Value of filling and there is 0? How can I make the default padding value be empty?
Answer the question
In order to leave comments, you need to log in
The type of your attribute "Type of protection" is a number. The default value for a number is zero. The padding value allows you to specify a value other than the default value when you first open it. You can also set the desired value in the OnOpening procedure for a new element.
If, when opening and writing, it should be "empty" instead of zero, then set your attribute type not to a number, but ... I don't even know what you need there ... maybe a string.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question