Table Roles Queries

kailashthiyagar
Kilo Guru

I have created a new role and havent assigned anyone to that role. In the ACL of my table, i added the newly created role in the "Create Access" part. I removed the default role which has been created as well..

Q1:In this case when i go to my actual table data, i still see the new option over there.. I m d admin for my instance.. So does it show "New" option for me? But it shouldnt be.. Rit? Since only the members of newly created role should see the "New" option.. Right

Q2:

I have around 10 tables(9 Admin related tables and then one main form) for my application. When i created those tables, automatic ACL;s with the default role has been added. Now should i have go to individual ACL's in each table and have to add the newly created roles? Or do we have any better process of doing it?

1 ACCEPTED SOLUTION

Hi Kailash,



In this case it is visible as table is not restriced based on role. I just hopped to your instance and I see there is no role assigned.


Can you please assign role and test once.


View solution in original post

27 REPLIES 27

Hi pradeepksharma , abhi_,



One quick question. I have a table for registering a macro which has a developer field also. Anyone can register a macro. But only those have registered the macro or those who are the macro developers can edit the macro which has been registered ...



I have created two roles.. one role with create permission and another role with write permission including a condition saying developer is dynamic(me)



For person A, i assigned the create role. when i impersonate as person A, i see the new option but when i click "New" all the fields in the form are disabled.


Then for Person A, i gave write permission too, in this case peron A, can create new and the fields are enabled. but he is able to do edit of record which is not registered/developed by him


Abhinay Erra
Giga Sage

You have created the ACL, but you have not given any roles to the ACL nor you have any conditions in that. So it is not preventing anyone from creating the records. What are you trying to do here? Whom do you want to give the create access?


Abhinay Erra
Giga Sage

kailashthiyagarajan  


In your write ACL use this in the script



answer=false;


if(current.isNewRecord()){


answer=true;


}


kailashthiyagar
Kilo Guru

Hi abhi_r



Thanks for ur response.. i added the script as given by u but its not working



My admin role is having write access and in that i added the script as below.. and also i added my macro register role to "Create" access"



When i impersonate as a person who has create access, all the fields are disabled.



write role.png


Abhinay Erra
Giga Sage

Can you share the entire screenshot of the ACL