cancel
Showing results for 
Search instead for 
Did you mean: 

UI ServiceCall 60110 form changed to update by clicking a added Folder

Former Member
0 Kudos

Hi all,

the Form is a different to most of the system forms. The OK button is placed on Item 9..

then I add a Folder to the existing one with somthing

like

oNewItem = (IItem)this.Object.Items.Add("folderxyz", SAPbouiCOM.BoFormItemTypes.it_FOLDER);

....

after this I add a Matrix to it with

SAPbouiCOM.IItem oNewItem;

                oNewItem = (IItem)this.Object.Items.Add("mat001", SAPbouiCOM.BoFormItemTypes.it_MATRIX);

                IItem oIItem = this.SapObject.Items.Item("7");

as well as a datasource like

oDBDataCounter = this.Object.DataSources.DBDataSources.Add("@G_MAD2");

using the data load event (after) I load some Data to the datasource...

everything is fine at this time.

when I click the Folder. the FormEvent gets fired and  the the Eventhandler runs

private void PressedFolder(object Object, SBOItemEventArg e, out bool bubbleEvent)

            {

                bubbleEvent = true;

                this.SapObject.PaneLevel = 10;

       

       

            }

I set a trace Point to bubbleevent and at this time the Form is already changed to "Update" Mode. step through the Event handler shows the Folder I added and the correct matrix.

But why is the Formmode changing?

if anybody has ideas? let me know.

Best regards

Oliver

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

OK...

AffectsFormMode = false;

solved it...

Answers (0)