cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a combobox value which automatically disables a textbox

0 Kudos
137

Hi experts.

I am trying to set a condition in my b1f form such that if the value of a combobox is "Closed" then disable a an editText18. SAP B1 addon development

Below is the c# code so far, when l run my addon , and set the combobox to "Closed" and update nothing is happening to the EditText18

private void Form_LoadAfter(SAPbouiCOM.SBOItemEventArg pVal) { try { if (((SAPbouiCOM.ComboBox)(this.GetItem("Item_28").Specific)).Selected.Value == "Closed") { ((SAPbouiCOM.EditText)(this.GetItem("Item_19").Specific)).Active = false; } } catch (Exception n) { } }

Jelena_Perfiljeva
Active Contributor
0 Kudos

This is neither ABAP nor SAP Community related question. Please chose the tags correctly to get a valid answer.

You might want to clarify what SAP product is this question regarding.

DoanManhQuynh
Active Contributor
0 Kudos

maybe Sharp (#) is close to SAP...

Accepted Solutions (0)

Answers (0)