Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3255

column lostfocusafter event not firing

$
0
0

hi guys,

we are developing an addin with sdk 9.1.

 

we are customizing the sale order grid in order to set some values in user fields ( eg. RDR1.U_FIELD ). those values depend on the chosen itemcode.

 

so when the user leaves the itemcode column ( lost focus ) we need to set a certain value on our user defined column.

 

we try to hook the sapboui.column lostfocusafter event as documented in sdk but the event never fires, even if event logger shows it.

 

 

        /// <summary>        /// Initialize components. Called by framework after form created.        /// </summary>        public override void OnInitializeComponent()        {            base.OnInitializeComponent();            SAPbouiCOM.Column colItemCode = this.Matrix.Columns.Item("1");            colItemCode.LostFocusAfter += new SAPbouiCOM._IColumnEvents_LostFocusAfterEventHandler(colItemCode_LostFocusAfter);            this.Matrix.LostFocusAfter += Matrix_LostFocusAfter;        }

 

then we try to capture the events and do stuff. fail.

 

 

  void Matrix_LostFocusAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)        {            if (pVal.ColUID == "1")            {                Application.SBO_Application.MessageBox("THIS WORKS");            }        }        void colItemCode_LostFocusAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)        {             Application.SBO_Application.MessageBox("THIS DOESN'T WORK");                 }

notice that Matrix_LostFocusAfter event is fired while colItemCode_LostFocusAfter never fires.

 

obviously event logger app shows the event is fired...

lostfocusafter.PNG

 

any suggestion? are we missing something or it just is one of the many bugs of this sdk?

 

i don't really get the point in exposing an event, documenting it and then not implement it. At least throw a NotImplementedException.

 

 

thanks in advance


Viewing all articles
Browse latest Browse all 3255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>