Skip to Content
author's profile photo Former Member
Former Member

Accessing control values via UI API

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2005 at 10:52 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.