Answer the question
In order to leave comments, you need to log in
How was the previous date and the changed date automatically inserted in 1C?
Tell me , please, where is the error:
ChangeShippingDate = FormElements.Software Orders.CurrentData.ShippingDate;
If FormerTO <> ModShipDate THEN
ModShipDate = FormItems.OrdersPO.CurrentData.ShipDate;
Record =RegisterInformation.Problems.CreateRecordSet();
Record.Selection.RFQ.Set(FormElements.Software Orders.CurrentData.RFQ.Link);
Record.Selection.Period.Set(FormerBEFORE);
Tab = Record.Add();
Tab.FormerDO = FormerDO;
Tab.ChangedShippingDate = ChangedShippingDate;
Tab. Period \u003d Previous TO;
Tab.ZP = FormElements.OrdersSoftware.CurrentData.ZP.Link;
Record.GetForm("ListForm").Open();
EndIf;
The essence of the question is that when the form is opened, the values \u200b\u200bof the changed date and the previous date are automatically inserted. Only a form opens without values
. I have 1C SCP edition 1.3.
FormerTO, ChangeDateShipment - variables.
Answer the question
In order to leave comments, you need to log in
Please tell me where is the mistake
ФормаПроблем = РегистрСведений.Проблемы.ПолучитьФорму("ФормаСписка");
НаборЗаписей = ФормаПроблем.НаборПроблем;
НаборЗаписей.Отбор.ЗП.Установить(ЭлементыФормы.ЗаказыПО.ТекущиеДанные.ЗП.Ссылка);
НаборЗаписей.Отбор.Период.Установить(ПрежняяДО);
НоваяЗапись = НаборЗаписей.Добавить();
НоваяЗапись.ПрежняяДО = ПрежняяДО;
НоваяЗапись.ИзмДатаОтгрузки = ИзмДатаОтгрузки;
НоваяЗапись.Период = ПрежняяДО;
НоваяЗапись.ЗП = ЭлементыФормы.ЗаказыПО.ТекущиеДанные.ЗП.Ссылка;
ФормаПроблем.Открыть();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question