Hi everyone,
Is it possible to give permissions only to a User group to delete subform rows?
Thanks in advance.
Regards,
Rui
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
User Group : Delete subform rows
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: User Group : Delete subform rows
Rui,
Something like this will hide the checkboxes so they cant be checked..
Steven
Something like this will hide the checkboxes so they cant be checked..
Code: Select all
function nuLoadThis() {
if (access_level() != 'admin'){
var ar = Array();
var subformName = 'FMinvoice_item';
ar = nuSubformRowArray(subformName);
for(var i = 0 ; i < ar.length ; i++){
document.getElementById('row'+ar[i]).style.visibility = 'hidden';
}
}
}
Steven
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
Re: User Group : Delete subform rows
Hi Steve,
And were I call that function?
Thanks!
Regards,
Rui
And were I call that function?
Thanks!
Regards,
Rui
BR
Rui
Rui
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: User Group : Delete subform rows
Rui,
If you have a function called nuLoadThis() it will automatically be run onload of a form.
http://wiki.nubuilder.com/tiki-index.ph ... uLoadThis_
Steven
If you have a function called nuLoadThis() it will automatically be run onload of a form.
http://wiki.nubuilder.com/tiki-index.ph ... uLoadThis_
Steven
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm