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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
User Group : Delete subform rows
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
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