cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Two forms

Former Member
0 Kudos

I created two forms in Screen painter and I'm stock with the code behind in VB.NET. I don't how to call the 2nd form.

My 1st form is for my Main and in this form it has a button save. I want that when I press Save the 2nd form will show. How can I do that?

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Is there anyone who can help me with this?

Former Member
0 Kudos

Well since you have your two SRF Files, you can try this code...

oXmlDoc = New Xml.XmlDocument
oXmlDoc.Load(sStartUpPath & sSRFFilename)

Dim creationPackage As SAPbouiCOM.FormCreationParams
    
creationPackage = gkSap.mwuiApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.XmlData = oXmlDoc.InnerXml

ReturnForm= gkSap.mwuiApp.Forms.AddEx(creationPackage)
ReturnForm.Visible = True

You basicly load the XML File to the creation package und the set it to visible. All the load functions are an

other story. Hope this helps.

Greetz

Former Member
0 Kudos

I don't get it. >.<

Former Member
0 Kudos

Hi

What you want to do on 2nd form ??

You can show 2nd form on the item pressed/clicked event of the button .

Regards

Former Member
0 Kudos

Hi

>

> What you want to do on 2nd form ??

> You can show 2nd form on the item pressed/clicked event of the button .

>

> Regards

When I press the button save the 2nd form will show. I don't know how to do that in SAP SDK. Do you have any sample?