Showing results for 
Search instead for 
Did you mean: 

Inserting Folders help needed

Former Member
0 Kudos

I need to add a folder (tab) to the Service Call screen. The folder needs to be inserted after the "Activities"


The folder I am adding always gets inserted as the

first one (before "General").

I have no Idea how to insert it between two other folders.

What's it with FromPane and ToPane properties of the Item object? do I need to set this for the Folder item as well?

here is my code (VB6)

        'add the folder - child jobs
        Set oItm = oForm.Items.Add("4003", it_FOLDER)
        Set oRelateItm = .Items("53") 'History tab
        oItm.Height = oRelateItm.Height
        Set oFolder = oItm.Specific
        '---set the caption
        oFolder.Caption = "Child Jobs"
        oFolder.DataBind.SetBound True, "", "CjFldrDS"
        oFolder.GroupWith ("53") '---Activities tab
        'testing to add a text box
        Set oItm = oForm.Items.Add("4004", it_EDIT)
        oItm.FromPane = 8
        oItm.ToPane = 8
        Set oRelateItm = .Items("67") ' another item on the general tab
        oItm.Left = oRelateItm.Left
        oItm.Top = oRelateItm.Top
        .PaneLevel = 8



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Indika,

Try changing the Left property of the folder Item. Your folder would be inserted in the middle and other folders will be moved.

Hope helps,

Ibai Peñ

Former Member
0 Kudos

Thanks Ibai,

That worked perfectly!


(10 points)

Answers (0)