{"id":368,"date":"2014-06-24T23:56:27","date_gmt":"2014-06-24T19:56:27","guid":{"rendered":"https:\/\/www.about1c.ru\/v77\/?p=368"},"modified":"2023-05-06T23:08:38","modified_gmt":"2023-05-06T20:08:38","slug":"procedure-onwriteconst","status":"publish","type":"post","link":"https:\/\/www.about1c.ru\/v77\/language-reference\/system\/predefined-procedures\/procedure-onwriteconst","title":{"rendered":"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b"},"content":{"rendered":"<p style=\"text-align: justify;\">\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0432\u043e\u0434\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b.<\/p>\n<p><!--more--><\/p>\n<h2>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<\/h2>\n<p>\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430\u00a0<code>\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b()<\/code>\u00a0\u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre class=\"syntax\">\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b(<em>\u0418\u043c\u044f\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/em>, <em>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/em>)\r\n    ...\r\n\u041a\u043e\u043d\u0435\u0446\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b<\/pre>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre>Procedure OnDeleteItem(<em>ConstantName<\/em>, <em>Value<\/em>)\r\n    ...\r\nEndProcedure<\/pre>\n<h2>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/h2>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b <code>\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b()<\/code><\/p>\n<table class=\"wright\">\n<tbody>\n<tr>\n<th>\u0418\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/th>\n<th>\u0422\u0438\u043f<\/th>\n<th>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th>\n<\/tr>\n<tr>\n<td>\u0418\u043c\u044f\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b*<\/td>\n<td>\u0421\u0442\u0440\u043e\u043a\u0430<\/td>\n<td>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u043a\u0430\u043a \u043e\u043d \u0437\u0430\u0434\u0430\u043d \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u043e\u0440\u0435<\/td>\n<\/tr>\n<tr>\n<td>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/td>\n<td>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439<\/td>\n<td>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">* &#8212; \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h2>\n<p style=\"text-align: justify;\">\u041f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430\u00a0<code>\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b()<\/code>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b.<\/p>\n<p style=\"text-align: justify;\">\u041f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043f\u0435\u0440\u0435\u0434 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b. \u0415\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f), \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b <span style=\"text-decoration: underline;\">\u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435<\/span>,\u00a0\u0430 \u0432 \u0442\u0435\u043b\u0435\u00a0\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043e\u043f\u0438\u0441\u0430\u0442\u044c\u00a0\u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p style=\"text-align: justify;\">\u0415\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u0442\u0435\u043b\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u00a0<a title=\"\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0421\u0442\u0430\u0442\u0443\u0441\u0412\u043e\u0437\u0432\u0440\u0430\u0442\u0430\" href=\"\/v77\/language-reference\/system\/predefined-procedures\/function-returnstatus\">\u0441\u0442\u0430\u0442\u0443\u0441 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e<\/a>\u00a0\u0438\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f.<\/p>\n<p style=\"text-align: justify;\">\u0425\u043e\u0447\u0443 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430\u00a0\u00a0<code>\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b()<\/code>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u0435\u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442. \u0415\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <em>\u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/em>, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430\u043c\u0438 <a title=\"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u041f\u0440\u0438\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0438\u0418\u0441\u0442\u043e\u0440\u0438\u0438\" href=\"\/v77\/language-reference\/system\/predefined-procedures\/procedure-onopenhistory\">\u041f\u0440\u0438\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0438\u0418\u0441\u0442\u043e\u0440\u0438\u0438()<\/a> \u0438\u043b\u0438 <a title=\"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u0418\u0441\u0442\u043e\u0440\u0438\u0438\" href=\"\/v77\/language-reference\/system\/predefined-procedures\/procedure-onwritehistory\">\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u0418\u0441\u0442\u043e\u0440\u0438\u0438()<\/a>.<\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b\u00a0<code>\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b()<\/code><\/p>\n<pre class=\"code\"><span style=\"color:red\">\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430<\/span> \u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<span style=\"color:red\">(<\/span>\u0418\u043c\u044f\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<span style=\"color:red\">,<\/span> \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<span style=\"color:red\">)<\/span>\r\n\t\r\n\t<span style=\"color:red\">\u0415\u0441\u043b\u0438<\/span> <span style=\"color:red\">(<\/span>\u0418\u043c\u044f\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <span style=\"color:red\">=<\/span> <span style=\"color:black\">\"\u0412\u0435\u0440\u0441\u0438\u044f\"<\/span><span style=\"color:red\">)<\/span> <span style=\"color:red\">\u0418<\/span> <span style=\"color:red\">(<\/span><span style=\"color:red\">\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u041d\u0430\u0431\u043e\u0440\u0430\u041f\u0440\u0430\u0432<\/span><span style=\"color:red\">()<\/span> <span style=\"color:darkred\">&lt;&gt; \"\u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\") \u0422\u043e\u0433\u0434\u0430<\/span>\r\n\t    <span style=\"color:red\">\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435<\/span><span style=\"color:red\">(<\/span><span style=\"color:black\">\"\u041d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438!\"<\/span><span style=\"color:red\">)<\/span><span style=\"color:red\">;<\/span>\r\n            <span style=\"color:red\">\u0421\u0442\u0430\u0442\u0443\u0441\u0412\u043e\u0437\u0432\u0440\u0430\u0442\u0430<\/span><span style=\"color:red\">(<\/span><span style=\"color:black\">0<\/span><span style=\"color:red\">)<\/span><span style=\"color:red\">;<\/span>\r\n\t    <span style=\"color:red\">\u0412\u043e\u0437\u0432\u0440\u0430\u0442<\/span><span style=\"color:red\">;<\/span>\r\n\t<span style=\"color:red\">\u041a\u043e\u043d\u0435\u0446\u0415\u0441\u043b\u0438<\/span><span style=\"color:red\">;<\/span>\r\n\t\r\n<span style=\"color:red\">\u041a\u043e\u043d\u0435\u0446\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b<\/span> <span style=\"color:green\">\/\/\u041f\u0440\u0438\u0417\u0430\u043f\u0438\u0441\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b()<\/span>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0432\u043e\u0434\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-predefined-procedures"],"_links":{"self":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":7,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":2888,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts\/368\/revisions\/2888"}],"wp:attachment":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}