Skip to Content
Former Member
Dec 19, 2006 at 09:13 AM

et_validate and bubbleEvent ) fasle



I need to verify a field's value before losting focus, and if this field's value is not ok It can't lose focus.

I use "bubbleevent=false" for this, but the field lose focus.

This is my code:

(pVal.Before_Action = False )

Case SAPbouiCOM.BoEventTypes.<b>et_VALIDATE</b>

oTmpForm = oAplicacion.SBOapp.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

If pVal.ItemUID = 38 Then

oMatrix = oTmpForm.Items.Item(38).Specific

If pVal.ColUID = "U_XX_UBIC" Then

oEditText = oMatrix.Columns.Item("24").Cells.Item(pVal.Row).Specific

If vWHS.GetByKey(oEditText.Value) Then

vWHS.UserFields.Fields.Item("U_XX_UBICA").Value = "SI" Then

oComboBox = oMatrix.Columns.Item("U_XX_UBIC").Cells.Item(pVal.Row).Specific

If oComboBox.Selected.Value = "" Then

<b>BubbleEvent = False</b>

Exit Sub

End If

End If

End If

End If

End If

Anyone can see my mistake?