Page 1 of 1
hide multi-update based on user-level
Posted: Fri Aug 25, 2017 2:39 pm
by mpopkin
Hi,
I would like to hide multi-update functionality for non-admin users. What would be the best way to code this? And would it need to be applied page by page or just once globally?
I'm using ASP.NET Maker 2017.
Thanks!
-mp
Re: hide multi-update based on user-level
Posted: Sat Aug 26, 2017 9:42 am
by Webmaster
Use the Page_Load server event to hide the button. For example:
if (CurrentUserLevel() == <n>)
OtherOptions["action"]["multiupdate"].Visible = false;
Re: hide multi-update based on user-level
Posted: Mon Aug 28, 2017 11:44 pm
by mpopkin
That produced an error in Page_Load.
I moved it to List_Page > Page_Render and it works well to hide the multi-edit button. Record check boxes still show, but that is fine.
Thanks!