cancel
Showing results for 
Search instead for 
Did you mean: 

UI: how to close XML form from botton click

Alfredo_Lagunar
Participant
0 Kudos

Hye!

I have loaded a xml form with a botton "Close". I know about events but I want that when I press this botton, the xml form is closed or unloaded and showing other xml form.

In visual basic studio, I have methods like load, unload, show, hide but here ?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

if you set the UID of the button to "2" then SBO will handle the closing of the form for you.

Alternatively, you can write code for the ItemEvent() event for the SAPbouiCOM.BoEventTypes.et_CLICK event type, and close the form through code:

Set oForm = SBO_Application.Forms.Item("MyForm")

oForm.Close