Skip to Content
0
Former Member
Apr 19, 2004 at 10:38 AM

UI: show form created with Screen Painter (.srf)

64 Views

Hello

I have created a form in the Screen Painter - can somebody please post the code needed for using this form in an add-on application??

This is what i've got - and it's not working: ( i have connected to SAP BO already)

-


Dim XMLDoc1 As New MSXML2.DOMDocument

XMLDoc1.load("VareAddOn.srf")

SBO_Application.LoadBatchActions(XMLDoc1.xml)

Dim oForm As SAPbouiCOM.Form

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

oForm.Visible = True

-


VareAddOn.srf is the form i created in screen painter, and frmVareOpslag is the UID for the form.

I get an error when i run the project (a NullReferenceException). Please help!