cancel
Showing results for 
Search instead for 
Did you mean: 

Add new row to matrix during et_CHOOSE_FROM_LIST event

Former Member
0 Kudos

Hey All,

Has anyone ever done this on a sales order or quote document? When I use the et_CHOOSE_FROM_LIST event on the itemcode in the matrix I can add a new row but it seems to mess up B1. It does not input the selected itemcode into the matrix line. I guess it gets messed up because of my new row.

Any ideas on how else I could do that?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Curtis,

I'd try the et_VALIDATE event on the itemcode column where the pVal.BeforeAction = false.

Cheers, Lita

Former Member
0 Kudos

Thanks Lita.

That worked

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

You have to control the values you are passing from and to the CFL. You can do this by using the SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST event. Also, try to evaluate the value of the cell on the lost_focus or validate event.

There's a sample on the SDK , C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList that deals with assigning values to a control on the event!

Hope it helps