on 07-03-2015 5:26 PM
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
OK...
AffectsFormMode = false;
solved it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
10 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.