on 09-30-2008 7:31 AM
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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.