I have added parameter DocRef to OnOpen handler of DocumentForm, where Zaopatrzenie is a DynamicList of Information Register and in CustomQuery of DynamicList parameter is used to filter records and it works fine.
| Code |
|---|
Procedure OnOpen(Cancel)
ThisForm.Zaopatrzenie.Parameters.SetParameterValue("DocRef",Object.Ref);
EndProcedure |
But later I add the record to Zaopatrzenie and the RecordForm is open and OnCreateAtServer of this form is executed and I don't know how to use this parameter here. The RecordForm is form of InformationRegister and it cannot see the parameter of DocumentForm (or I cannot find it). I don't know how the RecordForm should know where it is open from (i.e. from DocumentForm or from InformationRegisterList). If it is open from DocumentForm then DocRef should fill the attribute of record in RecordForm using parameter. That's my problem. Maybe I don't understand, maybe I do something wrong, so I will be thankful if you explain me. If more details will be necessery please just let me know.