Hi there
Is it possible to access control values on system forms (eg. textbox values) with the UI API?
I have to add the values of specific columns in a non saved (=new) grid and save the result in a new field.
I had no luck with constructions like:
oItem = SBO_Application.Forms.ActiveForm.Items.Item("38") mr = CType(oItem, SAPbouiCOM.MatrixClass)
Can somebody push me into the right direction?
Thanks
Phil
Message was edited by: Philipp Knecht
solved it like;
<snip>
Dim cells As SAPbouiCOM.Cells
Dim mtx As SAPbouiCOM.Matrix
Dim txt As SAPbouiCOM.EditText
Dim frm As SAPbouiCOM.Form
Dim weight As Decimal
frm = SBO_Application.Forms.ActiveForm
frm.Freeze(True)
mtx = frm.Items.Item("38").Specific
cells = mtx.Columns.Item("58").Cells
For i = 1 To mtx.RowCount - 1
txt = cells.Item(i).Specific
weight = weight + Val(txt.Value)
</snip>
Add a comment