cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop Add or Update action using StatusBar message ?

former_member209771
Active Participant
0 Kudos

Hi all ,

I want to add validation using StatusbarMessage and validation will be stop Add/Update Action .I have use

1) B1Connections.theAppl.SetStatusBarMessage("Please select Product Type ! ", BoMessageTime.bmt_Medium, true);

2) B1Connections.theAppl.StatusBar.SetText("Please select Product Type ! ", BoMessageTime.bmt_Medium, BoStatusBarMessageType.smt_Error);

3) B1Connections.theAppl.StatusBar.CreateProgressBar("Please specify the SKU ! ", 0, true);

all process are show error message but Add/Update Action successfully . i want to stop add or update action .please help any one how it is possible using statusbar message?

thanks & regards

Surajit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You Can set BubbleEvent=false

Try This.....


 If pVal.FormType = "65211" And pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.BeforeAction = True Then
            Try
                Dim oedit As SAPbouiCOM.EditText
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                oedit = oform.Items.Item("12").Specific
                If oedit.Value = "" Then
                    sbo_application.MessageBox("Field Should Not Be Blank")
                    BubbleEvent = False
                    Exit Try
                End If
            Catch ex As Exception
                sbo_application.MessageBox(ex.Message)
            End Try
        End If

Thanks

Shafi

Answers (3)

Answers (3)

former_member209771
Active Participant
0 Kudos

helpful

Former Member
0 Kudos

Using store procedure . its will stop the action when press the button some field empty

former_member209771
Active Participant
0 Kudos

Hi shafi_sunshine,

I have already use B1Connections.theAppl.MessageBox("Please enter the value ", 1, "OK", "", "");return false;

but this code show error in B1TE tolls that problem for addon certification . I want to use statusbar message.How to use Statusbar?

thanks

Surajit