Skip to Content
0
Oct 19, 2010 at 09:34 AM

Custom Choose From List

269 Views

Hi all,

I am trying to develop a custom choose from list functionality for my addon. I have created two forms first.srf and second.srf .In the key down event of an edittext in my first form i wrote the code for opening the second form

LoadFromXML("Second.srf")

    Private Sub LoadFromXML(ByRef FileName As String)
 
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
                   Dim sPath As String
            sPath = System.Windows.Forms.Application.StartupPath()
            sPath = sPath.Remove(sPath.Length - 3, 3)
            oXmlDoc.Load(sPath & "" & FileName)
            B1Connections.theAppl.LoadBatchActions(oXmlDoc.InnerXml)
 
     End Sub

second form is loading very well but my problem is that in the form load event of the second form when i try to access the grid i will get an error message

Item - Invalid Item [66000-3]. Form unique Id "Second", Item Unique Id : "grdItem"

I am using SAP B1 8.8 PL 10, visual Studio 2008 and B1DE 2.1.

Any help

Regards

Arun