I know record links table stores note/link data. Sales Orders/ Sales quotes have Notes factbox, i dont want to use another page for this. There must be a way to limit for deleting note . #-o
I know record links table stores note/link data. Sales Orders/ Sales quotes have Notes factbox, i dont want to use another page for this. There must be a way to limit for deleting note . #-o
You can write your deletion control code on OnDelete trigger of the Record Link table. Alternative method is using permissions.
Are there any concerns with these methods?
I dont want users to detele notes on sales order & sales quote but they can delete notes from customer & item. It means it is not logic to limit permission for table. There must be something to limit notes on some pages.
Hi,
I think there is a problem with your code. Check the following code. It works for me:
IF Type = Type::Note THEN BEGIN
RecRef.GET("Record ID");
IF RecRef.NUMBER IN [DATABASE::"Sales Header",DATABASE::"Purchase Header"] THEN //whatever table you want
ERROR('');
END;
Comments
If so set it to No.
http://msdn.microsoft.com/en-us/library/dd355353(v=nav.70)
http://www.BiloBeauty.com
http://www.autismspeaks.org
Do you have any idea?
Thank you
Don't factboxes just show data that already exists in another table.
You can stop it there from being deleted. that would be my first move.:-k
http://www.BiloBeauty.com
http://www.autismspeaks.org
You can write your deletion control code on OnDelete trigger of the Record Link table. Alternative method is using permissions.
Are there any concerns with these methods?
Pargesoft
Codes are already there but it doesnt work.
I dont want users to detele notes on sales order & sales quote but they can delete notes from customer & item. It means it is not logic to limit permission for table. There must be something to limit notes on some pages.
Is this clear?
thank you
I think there is a problem with your code. Check the following code. It works for me:
Pargesoft