Newtome - Monday, May 25, 2009 2:35 AM:
Hi,
I add a user in Innovator,but when i wanted to delete it ,the message shown:"The method associated with the server evet onBeforeDelete failed:Identity cannot be deleted.It is used in View role defualt."What dose "View role" mean?How could I delete the user?Thanks.
Best Regards,
Newtome
SamsAn - Tuesday, June 2, 2009 5:21 AM:
The message means that the identity is referenced in role item data type property of View ItemType (i.e. in role column of View table).
So, you cannot delete an instance (of type=Identity in your case) if there is a reference to the instance (through item data type property) in the innovator database.
If you are going to delete a user then you should go to TOCAdministrationUser and delete the user here. But references to the user are still possible and you should manually resolve them (put null or another user/identity id into corresponding places).
By the way, usually it is pretty difficult to delete a user since he/she created/modified a lot of instances (and thus system created_by_id/modified_by_id properties contain the reference to the user). But the user should not be allowed to login into Innovator. Use Logon Enabled flag of User form for this case.
SamsAn.
Original Mind Any Level Innovator Solutions Free-Lancer, http://sites.google.com/site/caraacc
Newtome - Thursday, June 4, 2009 11:53 AM:
It's useful,thank you very much!