D
D
Dmitry Krapivin2016-12-26 16:43:39
1C
Dmitry Krapivin, 2016-12-26 16:43:39

If in the 1s system there is a check and a function for displaying a warning (when moving to another field) with the possibility of further writing the document to the database?

If in the 1s system such a check and a function to display a warning with the possibility of further writing the document to the database?
Example:
A document is being created. The user fills in the fields of a table in a document. Filled in one field, moves on to another. The system immediately checks for the condition (see below). If the condition passes. then the system displays a notification. The user decided that all the same, his data entered, correct, writes the document to the database. Otherwise, the user edits the fields according to the condition.
Condition description:
The system should highlight the specified fields and display a text notification “The sum of the values ​​of the specified fields is greater than the value of the “Supply” field. The system checks the values ​​if the user has filled in one (or all of the specified fields, one by one) of the fields and moved from one field to another.
In this case, the user must be able to write/record and close the Document.
Condition: if the sum of the values ​​of the fields SupplyTR, SupplyKR, Supply TP is greater than the value of the field "Supply".
Example:
Supply 5
Supply TR
Supply KR
Supply TP
1. The user entered the number 2 in the Supply TR field and then moved to the "Supply KP" field
2. The user entered the number 8 in the Supply KP field and then moved to the "Supply TP" field
3. The system highlighted the fields and displayed the notification "the sum of the specified fields (2+8=10) is greater than the value of the "Supply" field (10>5)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kinash, 2016-12-26
@kiru

An interesting question. And let's start with the fact that in 1C there is no supply document with columns SupplyTR, SupplyKR, and so on ...
But on the basis of the 1C:Enterprise platform (the version is not important), you can create any configuration, including the one that you have . When a supply document is ready, add a check when editing table cells that would not prohibit writing a document, it takes 5 minutes (if not less) for a programmer to click on a column, create an event handler, write a formula for triggering a warning and save changes.

K
Konstantin Nagibovich, 2016-12-26
@nki

This can be done. Not a problem at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question