cancel
Showing results for 
Search instead for 
Did you mean: 

find all business objects

Former Member
0 Kudos

Hi All,

I would like to find all the SAP B1 objects list , I mean that each screen what object is using, what is the relation with form and object and tables.

Ifound some of the business objects.

please some one help in this case.

thanks

kv reddy

Accepted Solutions (1)

Accepted Solutions (1)

former_member191896
Active Participant
0 Kudos

Hi Venkat,

Refer to SDK Help:

1. Developer's Guide -> DI API -> Reference -> Overview -> Objects

2. Customization Tools -> Database Tables Reference

For a given form, you can always find the technical info by turning on "View -> System Information" in Business One.

You can also look into DB Browser Tool (which is part of B1DE Tools) for more information.

HTH

Aravind

Former Member
0 Kudos

I found the objects and properties for the some of the objects by writing some code.

actually i wanted to find all the objects by programatically using SAPbobsCOM or SAPbouiCOM objects.

and form layout xml (.srf for form design).

i am trying to use filter events, but item event is not firing., if able to capture the item event then can catch the form and get the xml using GetAsXml.

Please suggest me.

thanks

kv

Former Member
0 Kudos

Hi

Try to study this [Add-On Technical Demo v2 for SAP Business One 2005 (ZIP 23KB)|https://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/add-on%20technical%20demo%20v2%20for%20sap%20business%20one%202005.zip]

I'm use this form SAP TechDemo Addon 2.0SBO_TechDemoAddonTechSummitSBO_FormWorkWithXML.vb to save any opened form in xml file.

Regards

Sierdna S.

Former Member
0 Kudos

I tried with catching events and find xml of the form and here is the code snippet:

still I need a help for for the finding a object for each screen.

private void SBO_Application_ItemEvent( string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent ) {

BubbleEvent = true;

if (pVal.FormType != 0)

{

SAPbouiCOM.BoEventTypes EventEnum = 0;

EventEnum = pVal.EventType;

if (EventEnum == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) // or activate event

{

oForm = SBO_Application.Forms.ActiveForm;

SaveAsXML(ref oForm);

}

}

}

private void SaveAsXML(ref SAPbouiCOM.Form Form)

{

System.Xml.XmlDocument oXmlDoc = null;

string sXmlString = null;

string fileName = string.Empty;

string sPath = string.Empty;

oXmlDoc = new System.Xml.XmlDocument();

// get the form as an XML string

sXmlString = Form.GetAsXML();

// load the form's XML string to the

// XML document object

oXmlDoc.LoadXml(sXmlString);

if (oXmlDoc.SelectSingleNode("//form").Attributes["title"] != null)

fileName = Form.ActiveItem.ToString()+ " - " + oXmlDoc.SelectSingleNode("//form").Attributes["title"].Value.ToString();

sPath = System.IO.Directory.GetParent(Application.StartupPath).ToString()+"
";

if (!System.IO.File.Exists(sPath + fileName + ".xml"))

oXmlDoc.Save(sPath + fileName + ".xml"); // save the XML Document

}

Answers (0)