Skip to Content

UI: Some questions with folders

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ñ

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2004 at 09:12 AM

    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

    Add comment
    10|10000 characters needed characters exceeded