📚 SAP Business One SDK Help

AutoPaneSelection Property
See Also  Example

Description

Indicates whether the folder allows automatic pane selection.

If the folder allows automatic pane selection, when you click on a folder, the UI API automatically set the form pane level to the pane level bound to the folder.

Property type

Read-write property

Syntax

Visual Basic
Public Property AutoPaneSelection() As Boolean

Remarks

This property only works for folders of user forms.

Example

In the Form Settings window, to configuring more than one tab in a form, after you configured one tab, you do not need to close the form and open it again to configure another tab. Now you can save all configurations for different tabs at the same time.
Saving Form Settings Explicitly (C#)Copy Code
//Step 1. Create a form and enable form setting 
oFirstForm.Settings.Enabled = true; 
 
//Step 2. Add more than 1 folder to form and set folder AutoPaneSelection 
oFolder.AutoPaneSelection = true; 
 
//Step 3. Add a matrix to each folder and set frompane/topane 
 
//Step 4.Handle et_ITEM_PRESSED event on each folder and set MatrixUID of form setting correspondingly 
private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent) 

    BubbleEvent = true; 
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED &&!pVal.BeforeAction) 
    { 
        if (pVal.FormUID == "firstform") 
        { 
            if (pVal.ItemUID == "Folder1") 
            { 
                oFirstForm.Settings.MatrixUID = "matrix1"; 
            } 
            else if (pVal.ItemUID == "Folder2") 
            { 
                oFirstForm.Settings.MatrixUID = "matrix2"; 
            } 
        } 
     } 
 }

See Also