on 01-09-2008 7:39 AM
Hi all,
i am working on production order in that form i created one user defined field ie Vendorname(udf) for this i wanted to do validation but i am not able to do validation for that field.For other fields ie for predefined one i am able to do validation getting Item uid but for User defined field i am not able to do this giving Item uid. Can any one help me regarding this issue asap.
Regards
ANAND
Hi Anand,
i am not sure whether i had understood your problem or not
but if you are trying to validate a UDF then in before action true in validate event
if Pval.itemUid="U_Vendorname") then
'Do some thing
End if
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
use this code
If pVal.FormTypeEx = "URFORMTYPE" And pVal.BeforeAction = True And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.ItemUID = "URBUTTONUID" Then
If objForm.Items.Item("U_Vendorname").Specific.Value = "" Then
SBO_Application.MessageBox("ERRORMESSAGE")
BubbleEvent = False
End If
End If
If it helps please reward points
Regards
Vishnu
i think his problem is he don't know how to access the userdefined fields in the form !
because he can do it with normal fields
anand, try this:
if (appl.Forms.GetFormByTypeAndCount((frm.Type * -1), appl.Forms.ActiveForm.TypeCount).Items.item("U_FIELD").Specific.Value = "xyz" ) then
end if
look in the sdk ui documentation for GetFormByTypeAndCount
the userdefined fields on the side are in a own form with type * -1
User | Count |
---|---|
94 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.