on 12-01-2007 5:59 AM
Hi
Everybody
How can I open user form using link button from other user form or system form?
Thanks in advance
Mithun
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.