on 06-02-2011 4:46 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.