on 11-18-2023 8:55 AM
Hi,
I have an add on form with Date Field (Edit Text) . I had given a validation that add on form will not add if the Date Filed is empty.User is using this form daily.But in some days form is adding without date.I had given bubbleValue to false when date is empty. How to Resolve this issue. Kindly suggest.
Thanks.
Hi dinesh.s1,
You can use something like this:
if (BusinessObjectInfo.BeforeAction == true && BusinessObjectInfo.FormTypeEx == "UDO_FT_TESTUDON2" && BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
{
SAPbouiCOM.Form oForm = (SAPbouiCOM.Form)SBO_Application.Forms.GetForm(BusinessObjectInfo.FormTypeEx, 1);
SAPbouiCOM.DBDataSource oDB = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@HEADERM");
string Name = oDB.GetValue("U_TEST", 0);
if (Name == "")
{
BubbleEvent = false;
}
}
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dinesh.s1,
I would suggest you to use FORM_DATA_EVENT for the same.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.