cancel
Showing results for 
Search instead for 
Did you mean: 

UI: Some questions with folders

Former Member
0 Kudos

Hi,

I have added a folder to an existing form using the code below. But now, I have some doubts about how to go on.

1- The new folder appears in first position. Is it possible to make it appear in last position?

2- The new folder doesn´t refresh (In this case clean, becouse it hasn´t got items) the item area. What must I do to force it?

3- How did I add a control to the folder?

This is the code I use to create the folder:

Dim oForm As SAPbouiCOM.Form

Dim oPestaña As SAPbouiCOM.Folder

oForm = con.Forms.Item(FormUID)

oPestaña=oForm.Items.Add("Pestaña",SAPbouiCOM.BoFormItemTypes.it_FOLDER ).Specific

oPestaña.Caption = "Pestaña 1"

oPestaña.GroupWith("40")

oPestaña.Select()

Thanks in advance,

Ibai Peñ

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ibai,

have a look at the folder sample SAP provides in the download area. Almost all of your questions will be answered.

HTH Lutz Morrien

Former Member
0 Kudos

Thanks,

It has been very usefull.

Sorry, but I didn´t know the download area.

Next time I will look there first.

Regards,

Ibai Peñ