cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Choose from list at runtime

Former Member
0 Kudos

Hi all,

is there a way to disable choose from list at runtime in a text columns in a matrix ?

I'm developing with SAP B1 2007 SP01 PL 12 HOTEFIX1

I need at runtime, depending on the value on another columns in a matrix (in the validate event) to enable or disable choose from list in another text columns (and relative icon).

If i change the choose form list with another one, it runs regularly, but if i need to disable, it seems impossible.

E.g.: this runs:

mtxDish.Columns.Item("dtDPName").ChooseFromListUID = "cflDish1"

mtxDish.Columns.Item("dtDPName").ChooseFromListAlias = "Name"

this not runs:

mtxDish.Columns.Item("dtDPName").ChooseFromListUID = "" (this cause exception, the same with "-1")

mtxDish.Columns.Item("dtDPName").ChooseFromListAlias = ""

Any idea ?

Thanks.

Fausto.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In item click event u will try.

if u click in cfl change the focus to other column.

then

oMatrix.Columns.Item("columnid").Editable = false; use this code.

Regards,

Vinodh N

Former Member
0 Kudos

hello

You may try block the event from eventhandler, when you are in before CFL action.

Here is a sample code

If pVal.FormTypeEx = "60110" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
            If pVal.ItemUID = "14" Then
                If pVal.InnerEvent And pVal.BeforeAction = True Then
                    BubbleEvent = False 'block the event

Regards

János