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

Link Button

Hi To All,

In my screen i hav a textbox with link button. when i click the link button another user screen should open. the other screen hav a combo box control. i should browse by that combo box.. Here is my source


  Select Case pVal.EventType
                            Case SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED
                                If pVal.ColUID = "colID" Then
                                   LoadXML.LoadForm("aaa.xml")
                                    Dim frm As SAPbouiCOM.Form = App.Forms.Item("AAA")
                                    frm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
                                    Matrix.GetLineData(pVal.Row)
                                    frm.Items.Item("txtToolNo").Specific.value = DBDatasource.GetValue("U_toolid", DBDatasource.Offset).Trim
                                    frm.Items.Item("1").Click()
                                End If
                        End Select

When i cross this line

             frm.Items.Item("txtToolNo").Specific.value = DBDatasource.GetValue("U_toolid", DBDatasource.Offset).Trim
                       

error message comes as

Public member 'value' on type 'IComboBox' not found.

Wats the problem.....?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:39 AM

    Sridhar,

    which type is txttoolno?

    if it is edittext, use it as

    edit = frm.Items.Item("txtToolNo").Specific

    edt.value = DBDatasource.GetValue("U_toolid", DBDatasource.Offset).Trim

    if is combo and the value exists in valid values, use

    ocombo = frm.Items.Item("txtToolNo").Specific

    ocombo.Select(index, SAPbouiCOM.BoSearchKey.psk_Index) -or value, description

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      While debugging in GETVALUE i got the value which is in matrix column. By clicking the column link only another screen shd be opened. The toolno got set in the find screen.. but when v click find button, the other values r not coming. if we delete the toolno and if v entered the same toolno and cliked find button, the other values got set....

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:42 AM

    Hi Sridhar,

    You cannoy use value methos on the Combo box items.you need to select it manualy as

    dim ocombo as sapbouicom.combobox

    ocombo = frm.Items.Item("txtToolNo").Specific

    ocombo.Select(index, SAPbouiCOM.BoSearchKey.psk_Index) -or psk_value or psk_description

    Hope this wil hlp u

    Warm Regards,

    Mahendra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:42 AM

    Hi Sridhar,

    You cannoy use value method on the Combo box items.you need to select it manualy as

    dim ocombo as sapbouicom.combobox

    ocombo = frm.Items.Item("txtToolNo").Specific

    ocombo.Select(index, SAPbouiCOM.BoSearchKey.psk_Index) -or psk_value or psk_description

    Hope this wil hlp u

    Warm Regards,

    Mahendra

    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.