Form Mode automatically changed from OK Mode to Update Mode while click on Customized Tab in system form
I have created new tabs along with the existing tabs in Production Order Screen. This works fine in Add Mode. But in Ok Mode, while click on the newly created Tab, Form Mode got changed to Update Mode.
Any Idea how to handle this....
Coding used to create Tab Control:
oitem = oform.Items.Add("id", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
oitem.Left = oform.Items.Item("35").Left + oform.Items.Item("35").Width
oitem.Width = oform.Items.Item("35").Width '- 100
oitem.AffectsFormMode = False
ofolder = oitem.Specific
oitem.FromPane = 0
oitem.ToPane = 0
ofolder.Pane = 8
Thanks & Regards,
That can happen because, one of the controllers of your tab gets changed, there's value when it get focus. (May be a text box or any controller)
If that behavior is compulsory, then consider to change that Item's (controller's) 'AffectsFormMode' property as below.
YourController.Item.AffectsFormMode = false;
J S L Geeganage