This code
Code |
---|
&AtServer Procedure OnCreateAtServer(Cancel, StandardProcessing) Cobrados = New DataCompositionField("Cobrado"); CobradosFilter = Undefined; For Each Item In List.Filter.Items Do If Item.LeftValue = Cobrados Then CobradosFilter = Item; EndIf; EndDo; If CobradosFilter = Undefined Then CobradosFilter = List.Filter.Items.Add(Type("DataCompositionFilterItem")); CobradosFilter.LeftValue = Cobrados; CobradosFilter.ComparisonType = DataCompositionComparisonType.Equal; CobradosFilter.Use = True; EndIf; CobradosFilter.RightValue =(Cobrados = 1); EndProcedure |
At the form I have the integer(10,0) field "Cobrados" connected with radio button control and in the list I have a column "Cobrado" of type boolean.
I understand the error in the code, but by the way, i think, it shouldn't cause platform crash.
Platform version - 8.3.4.437 in taxi mode without compatibility.