I have a Document with tabular section called "positionen".
In the document-Form i placed the tabular section with action panel. In the OnStartEdit i placed following code:
Code |
---|
Procedure PositionenOnStartEdit(Item, NewRow, Clone) P = New Structure; If Not NewRow Then P.Insert("Data", SaveData(Items.Positionen.CurrentRow)); EndIf; Result = OpenFormModal("Document.Auftraege.Form.FormPosition", P, ThisForm); If ValueIsFilled(Result) And TypeOf(Result) = Type("String") Then FoundData = GetFromTempStorage(Result); FillPropertyValues(Item.CurrentData,FoundData); Modified = True; EndIf; EndProcedure |
Now my problem:
After return from the ModalForm i want to end the edit at active row. Now i almost must press the escape-key to end the edit.