cancel
Showing results for 
Search instead for 
Did you mean: 

Folder

Former Member
0 Kudos

HI to all,

I am creating a user defined forms using screen painter.In one form i need to insert a 3 folder and each folder having a different matrix depending up the selection i need to visible the selected folder matrix .

How is it possible?I need to write any code ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Narayana,

Yes it's possible. You should initialize the propertie ToPane and FromPane.

Example :

//Create Folder

SAPbouiCOM.Item oItem;

SAPbouiCOM.Folder oFolder;

oItem = (SAPbouiCOM.Item)oForm.Items.Add("BULL", SAPbouiCOM.BoFormItemTypes.it_FOLDER);

oItem.Left = 535;

oItem.Width = 67;

oItem.Top = 128;

oItem.Height = 21;

oItem.Visible = true;

oItem.Enabled = true;

oItem.AffectsFormMode = false;

oFolder = (SAPbouiCOM.Folder)oItem.Specific;

oFolder.Caption = "Bulletin";

oFolder.ValOff = "0";

oFolder.ValOn = "8";

oFolder.DataBind.SetBound(true, "", "IFCFolder");

oFolder.GroupWith("9");

//Create Matrix and "attach" to folder

oItem = oForm.Items.Add("MAT_BR", SAPbouiCOM.BoFormItemTypes.it_MATRIX);

oItem.Left = 17;

oItem.Top = 187;

oItem.Width = 500;

oItem.Height = 150;

oItem.FromPane = 8;

oItem.ToPane = 8;

oItem.AffectsFormMode = false;

Hope it's help you.

Regards

Michael

Former Member
0 Kudos

HI Michael LECLERCQ

Thanks for responding.You mean i neesd to write the code .is it not possible through screen painter.how to add the folder through screen painter?

Nussi
Active Contributor
0 Kudos

Hi,

you have the Folder symbol in screenpainter - the symbol left from matrix.

after adding the folder add a rectangle to get the look&feel of the system forms.

add the matrix and give them the right panelevel.

lg David

Former Member
0 Kudos

Hi narayana,

After you add your folder like David said, you have the FromPane and ToPane properties in your item.

The value of these properties is the same of the value of the "Pane" propertie of the folder.

Regards

Michael

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Set the Item's Pane Level.

By setting the Form's pane level this value will determine the Items visibility.

For example.

- matrix1: from_pane=0, to_pane=0;

- matrix2: from_pane=1, to_pane=1;

- matrix3: from_pane=2, to_pane=2;

You need to handle click on the folder to change oForm.PaneLevel.

Nice example is SDK_Samples_2005\COM UI\VB.NET\07.ComplexForm\2003

Regards