S.K.Jala
10th January 2003, 08:51
Hi all,
Is there any way to block the text for modification, deletion etc.
I want the text to be blocked fully (it should become read only) if some criteria is met.
For example the text in purchase requisition should become read only if the status of purchase requisition is not equal to "raised". This is creating confusion as people can change text even after purchase order is raised.
This I tried through that table field authorisation but it does not work.
Thanks

Ruskin
13th January 2003, 05:55
As you probably know, text authorisations are by text groups. Thus a user can have different authorisations to a particular group and for purchasing you could set up a specific group for purchase order text.

BUT, there is a problem with this. It is global for the order, so the user can still enter (if they have authorisations to that text group) text against the order. The only way to prevent them from modifying the text after the order is created, is to edit the session script (if you don't have source, you will need to get it customised). If you do have source, then in the text choice option, all you need is a couple of lines of code;

choice.text.manager:
before.choice:
if not ( condition to write text ) then
attr.textmode = 1 |* Read-Only Text
endif