Skip to Content
0
Former Member
Jan 22, 2011 at 06:01 AM

Enabling/Dabling EditText depending on form Mode

23 Views

Hi, i'm having a few forms which have fields that are not to be edited. But can me used for searching in find mode.

one such field is a serial number field. I've tried various ways to try doing this. One of my code for item event is

If pVal.ItemUID = "1000002" And pVal.BeforeAction = True And pVal.FormMode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
            objForm.Items.Item("1000002").Enabled = False
        End If

I even used event filtering, like using click and got focused. But it does not fully function like in a standard sap document.

Any one has any ideas on how to get this done?

Thanks in advanced.