Currently, the standard Siebel application does not provide the ability to make a multi value field “required”.
The solution currently available right now is to write Visual Basic (VB) code to enforce the business requirement.
The Sample VB code to make the Street Address Multi Value Field to be a
required field would be:
Function BusComp_PreWriteRecord As Integer
DIM streetAddress AS String
streetAddress = “”
Me.ActivateField(”Street Address”)
streetAddress = Me.getFieldValue(”Street Address”)
If NOT len(streetAddress) > 0 then
MsgBox “Please Enter Street Address”
BusComp_PreWriteRecord = CancelOperation
exit Function
end if
BusComp_PreWriteRecord = ContinueOperation
End Function
No comments:
Post a Comment