Quantcast
Viewing all articles
Browse latest Browse all 8667

Re: catching Other Event inside a SAPbouiCOM.SBOItemEventArg in SAP 9.0 di api

Hi Nilmini,

 

I guess you should catch the ChooseFromListAfter event of the text box that you have bind with CFL. docNumTxt in your case.

 

private void docNumTxt_ChooseFromListAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)

{

              SAPbouiCOM.SBOChooseFromListEventArg chooseFromListEvent = ((SAPbouiCOM.SBOChooseFromListEventArg)(pVal));

              var currentForm = Application.SBO_Application.Forms.Item(pVal.FormUID);

      

              //if your text box is bind to a user data source

              SAPbouiCOM.UserDataSource dataSource = currentForm.DataSources.UserDataSources.Item("UD_0");

              dataSource.ValueEx = chooseFromListEvent.SelectedObjects.GetValue(0, 0).ToString();

      

              //else

              EditText1.Value = chooseFromListEvent.SelectedObjects.GetValue(0, 0).ToString();

}

 

Hope this would be helpful.

 

 

Best Regards, J S L Geeganage


Viewing all articles
Browse latest Browse all 8667

Trending Articles



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