cancel
Showing results for 
Search instead for 
Did you mean: 

Form

Former Member
0 Kudos

HI ,

I create the menu ,but now i need to open the form when i click the menu item .For this i want to assign the form tomenu item .Hoe is it possible

Regards,

M.Thippa Reddy.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There are many sample examples provided by SAP.Try to study

the following sample -

C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\05.AddingMenuItems\2003

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi...

use this code..

Private Sub OpenItemFrm()

Try

Dim oXmlDoc As Xml.XmlDocument

oXmlDoc = New Xml.XmlDocument

Dim sPath As String

sPath = CurDir()

Try

oXmlDoc.Load(sPath & "\" & "srfname.srf")

SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)

oForm = SBO_Application.Forms.Item("FormUID")

Catch ex As Exception

SBO_Application.MessageBox(ex.Message)

End Try

End Sub

and

Menu Event...

Select Case pVal.MenuUID

Case "SalesStatus"

If pVal.BeforeAction = False Then

OpenItemFrm()

End If

End Select

Regards...

Billa 2007

Former Member
0 Kudos

Hi,

Check the following sample it will givu u the whole idea.. it will be very helpful to u...

C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI DI\VB.NET\UIDIBasicApp\VIDS

Vasu Natari.