I have a dynamic list on the Choice Form with the Customer field as a reference to Contractors catalog. And I would like to add a filter by this field programmatically to bypass only records with the Customer equal to the one which is passed to this form as a parameter and a System Contractor which must to be available for all documents. I could do this for a single Customer in the following way:
Code |
---|
&AtClient Procedure EvidenceStartChoice(Item, ChoiceData, StandardProcessing) StandardProcessing = False; FilterValue = New Structure("Customer", Object.Customer); ChoiceParameters = New Structure("Filter, CurrentRow", FilterValue, Object.Evidence); Evidence = OpenFormModal("Document.GoodsExpence.ChoiceForm", ChoiceParameters); If ValueIsFilled(Evidence) Then Object.Evidence = Evidence; EndIf; EndProcedure |
How to add a System Contractor with OR condition to this filter?