outra9e
18th July 2002, 10:55
Hi, IM back again...

Can anyone tell me how to restrict users from deleting and or modifying saved records in a maintain session?

I think that I can set an input error on the choice "delete", but I am not sure which choice "delete" is!

Also, while I do not want users to be able to modify saved records, they must be able to copy records and modify those.

Any ideas?

Cheers

klesch
18th July 2002, 11:00
You can disable "delete", "modify", and everything using session ttadv3110s000, which is available from Special menu of session ttadv3100m000.

Alternatively, you can do the following in a script:


main.table.io:
before.delete:
skip.io("<some message>")

main.table.io:
before.rewrite:
skip.io("<some message>")

Djie-En
18th July 2002, 11:19
Hi,

You also can use the sessions ttaad4130m000, 4131, 4132, 4133, 4134, 4135 for authorizations.

GN

outra9e
18th July 2002, 11:40
Thanks for this, I have put the scripting in, it will not affect the users ability to be able to copy and modify the copy record will it?

Its just I have noticed that although this stops deleting or modifying it also stops me from inserting.

Cheers

evesely
18th July 2002, 17:56
I would opt for the "Form" method previously mentioned: unchecking the options for delete and modify. This way you stop things at the beginning rather than letting people think they can change things only to be denied at save time. If you want to display a message, then I suppose that you could do it in code like:

choice.modify.set:
before.choice:
message("Can't do it")
choice.again()

choice.mark.delete:
before.choice:
message("Can't do it")
choice.again()


You could make the message a mess to make it more generic, but you get the point. Good luck.

outra9e
18th July 2002, 18:06
Thanks for this, if I set the permissions on the table to stop updating or deleting, can this be user specific?