Hi.Sir
I set Customization Form Wizards in Inventory Transfer.I would like to make if transferQty is over then OnhandQty and warning message shows. However warning message shows around 5 times. Are there any way to make warning message show only one time?
Customization Form Wizards Code as below:
The code as below. However
Private Sub CreateRowRuleviewTransferQtyGreaterThan()
’ Description: OverOnHand
’ **** begin autogenerated code ****
Dim ruleActions(-1) As RuleAction
’ Create RowRule and add to the EpiDataView.
’ Dummy Context Object
Dim contextObject As Object = Nothing
Dim rrCreateRowRuleviewTransferQtyGreaterThan As RowRule = New RowRule(“view.TransferQty”, RuleCondition.GreaterThan, “view.FromOnHandQty”, AddressOf Me.viewTransferQtyGreaterThanviewFromOnHandQty_CustomRuleAction, contextObject)
CType(Me.oTrans.EpiDataViews(“view”),EpiDataView).AddRowRule(rrCreateRowRuleviewTransferQtyGreaterThan)
’ **** end autogenerated code ****
End Sub
Private Sub viewTransferQtyGreaterThanviewFromOnHandQty_CustomRuleAction(ByVal args As Ice.Lib.ExtendedProps.RowRuleDelegateArgs)
' ** RowRuleDelegateArgs Properties: args.Arg1, args.Arg2, args.Context, args.Row
' ** put custom Rule Action logic here
MessageBox.Show ("TransferQty over onhandQty!!")
End Sub
Thank you for your help.