Hi,
Please tell me the object code for activity (OCLG).
Regards,
Datta Kharat
Request clarification before answering.
Hi,
What is your B1 version and PL? What are you trying to do with this object?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI datta,
ther is 2 ways to make a UDF Mandatory
1. when you create the UDF, in the User Defined Field Management window, in Field Data Window there is an checkbox option Mandatory Field, you just need to check this tick box. also you can update your UDF to make it mandatory.
2. using SPTransactionNotification, and regarding your question Object Code
103 - Activity types
217 - Activity Status
regards,
Fidel
hi Suraj,
The below is my SP notification.
IF ((@transaction_type in( N'A',N'U')) AND @Object_type = N'33')
Begin
IF EXISTS (SELECT * FROM OCLG T0
WHERE T0.DocEntry = @list_of_cols_val_tab_del
AND (T0.[U_Creator]IS NULL or T0.[U_Creator]=''))
SELECT @error = 1007, @error_message = 'Please Select Creator Name'
END
Regards,
Datta Kharat
Hi Datta Kharat,
If @object_type = '33' and ((@transaction_type in( N'A',N'U')))
begin
if exists(select 'A' from oclg T0
where isnull(T0.U_Creator,'') = ''
and T0.ClgCode = @list_of_cols_val_tab_del)
begin
set @error = 1
set @error_message = 'Please Select Creator Name'
end
endObject Code 33 is perfect and Docentry is not in Activity in place of ClgCode is unique.
Thanks,
Srujal Patel
| User | Count |
|---|---|
| 13 | |
| 12 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.