problem with users and roles.......

problem with users and roles.......

  
hi....
how i ristrict the user to delete a record, i want that he can view only but can not delete.....
help plz.........
Regards Israr 
Hi Israr
You have two options, you can put the button inside a If and check the role in the condition, If the user have the role the button appears. The other option is to put the checkrole in the enable, but the button stills visible.
Tell me if you need more help.
Regards Romeu Azevedo
hi Romeu Azevedo...

thanx for the help,

Actually i created 3 roles,names (CAN_EDIT, CAN_UPDATE, CAN_DELETE)  so first two are working because i assign  pages (Contacts_EDIT AND contacts_SHOW) to these role ,but we dont have the delete page,so how i ristrict the user..?
so can u upload the (enclose in if) example..?
Regard Israr
Hi Israr,
You have a sample here.

Regards
Carlos Rocha