Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

Support Forum



Security Role
broadcom asked:
What role should I use to allow editing to all records but no insert and delete function?

Thanks
 
  dougl responded:
  No out-of-the-box role specifically defines this behavior. However, you can restrict the behavior of your users by customizing the displayroles of elements on your views.

For example..
You have a team of editors who are members of your web. If you create a view that only displays your data in grid, update, and insert modes. You can remove all links to delete records, as well.

To prevent users in this group from ever inserting or deleting records from this table, you can write a script that runs before the data is inserted/deleted. Users in this group will fail any attempts to insert or delete from anywhere within your web.

An example:

function Data_BeforeInsert(record, previous)
{
   /*
    prevent users in who do not have Design permission
   on this table from Inserting records
   */

if( !user.hasPermission( User.perm_Design, "thisTableName" ) ) {
     script.log( user.name + " attempted to insert" );
     return false;
}

}
 
  dougl responded:
  DataWeb considers this issue closed.
If you have additional questions or comments about this issue, please open it again.
If you have questions about a different topic please open a new support question.

Thanks,
DataWeb Support
 
  Please Log On
or create your own DataWeb Account.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us