Normally it is required to define if the new object is created or not when the new object should be filled. For this use the object module:
Code |
---|
Procedure Filling(FillingData, StandardProcessing)
// Fill new or refilled object here
EndProcedure |
If the form item visibility or other form changes should be performed for new objects, use the Parameters.Key.IsEmpty():
Code |
---|
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
If Parameters.Key.IsEmpty() Then
// Change item visibility and so on
EndIf;
EndProcedure
&AtClient
Procedure OnOpen(Cancel)
If Parameters.Key.IsEmpty() Then
// Change item visibility and so on
EndIf;
EndProcedure |