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

About Link Button

Hi

Everybody

How can I open user form using link button from other user form or system form?

Thanks in advance

Mithun

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 12:27 PM

    Hi

    Anitha

    I have already specify an UDO for user form.

    But from link button I can't able to open it.

    Pls help me with some details on it.

    ITS URGENT

    Thanks in advance

    Mithun

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Try this,

      U have to write this in itemevent of itempressed

      If pVal.ItemUID = "pilink" And pVal.BeforeAction = False Then

      Try

      Dim IndentNo As String

      IndentNo = HEAD_oDBds.GetValue("U_INo", 0)

      Dim oForm As SAPbouiCOM.Form

      Dim Bool As Boolean = False

      For frm As Integer = 0 To app.Forms.Count - 1

      Try

      If app.Forms.Item(frm).UniqueID = "PI" Then

      oForm = app.Forms.Item("PI")

      oForm.Close()

      Exit For

      End If

      Catch ex As Exception

      app.StatusBar.SetText(ex.Message)

      End Try

      Next

      If Bool = False Then

      app.ActivateMenuItem("PI")

      oForm = app.Forms.Item("PI")

      oForm.Select()

      oForm.Freeze(True)

      oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE

      oForm.Items.Item("t_ino").Specific.Value = Trim(IndentNo)

      oForm.Items.Item("1").Click()

      oForm.Freeze(False)

      End If

      Catch ex As Exception

      app.StatusBar.SetText(ex.Message)

      End Try

      End If

      Catch ex As Exception

      app.MessageBox(ex.Message)

      End Try

      Where U_INo is the variable of the text having link button

      PI is the form name to which u want to link to

      t_ino is the text box name of which u want to link there

      thats is iam linking RQ form to PI form

      If its helps give reward points,

      Regards,

      Anitha

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 06:01 AM

    Mithun,

    For System form u have to specific the Object Type for user form u have to create the user form as UDO.

    Regards,

    Anitha

    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.