Skip to Content
author's profile photo Former Member
Former Member

UDO Form Validation

Hi,

In my UDO form, there is a field "SumTotal " that is declared as double in database by default whose value is 0.0.

Before submitting i.e. adding the value to the database I want to keep the checking that the value should be greater than zero.

But, it's UDO form , so I don't have any control to check it.

How will I solve?

Rgds

Subrata

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 09:53 AM

    Subrata,

    Becoz of UDO so wht u can write by this in ItemEvent

    Case SAPbouiCOM.BoEventTypes.et_CLICK

    If pVal.ItemUID = "1" And pVal.BeforeAction = True Then

    If PI_Frm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Or PI_Frm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then

    If Validation() = False Then

    BubbleEvent = False

    End If

    End If

    End If

    Where Validation is a function which returns boolean.

    If this is helpful give reward points,

    Regards,

    Anitha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.