I have a packaged module named Timesheet with a many to one relationship with Users, making a relational field in Timesheet.
In Studio it shows up as âAssigned toâ in Layouts.
How do I set its inline edit off?
Iâve tried
$dictionary['time_MonthlyTimesheet']['fields']['time_monthlytimesheet_users']['inline_edit']='';
in Timesheetâs Vardefs, but it doesnât work. I think it could if I had the proper field name.
pgr
2 November 2019 19:13
2
Under âcustom/Ext/modules/â there should be files resulting from whatever you did in Studio, you should be able to get the proper field names from there.
Please do like this, you forget to add âFALSEâ
$dictionary['time_MonthlyTimesheet']['fields']['time_monthlytimesheet_users']['inline_edit']=FALSE;
1 Like
Iâve tried the following variables and users can still inline edit
$dictionary['time_MonthlyTimesheet']['fields']['time_monthlytimesheet_users']['inline_edit']=false;
$dictionary['time_MonthlyTimesheet']['fields']['time_monthlytimesheet_users_name']['inline_edit']=false;
$dictionary['time_MonthlyTimesheet']['fields']['time_monthlytimesheet_usersusers_ida']['inline_edit']=false;
As shown by the red pencil under the Assigned to field:
https://i.imgur.com/MFA64yc.png
Can I remove non-admin users ability to inline edit?
have you did âQuick Repair and Rebuildâ after putting this code??
Also try this
The field name should be âassigned_user_nameâ
$dictionary['time_MonthlyTimesheet']['fields']['center_admin_c']['assigned_user_name']='0';
If you need instant reply please join me via skype.
Thanks
Both didnât work but Iâm just gonna restrict some users ability to see Listview.
Hi,
I tried this and it worked
Please copy this and USE this exact code
$dictionary['Contact']['fields']['assigned_user_name']['inline_edit'] = 0;
Thanks
If its the default assgined user name field, then you should place following line in the file that you would create at
custom/Extension/modules/time_MonthlyTimesheet/Ext/Vardefs/sugarfield_assigned_user.php
$dictionary['time_MonthlyTimesheet']['fields']['assigned_user_name']['inline_edit']=false;
After creating the file with content, please run Quick Repair/Rebuild from Admin.
1 Like
$dictionary['time_MonthlyTimesheet']['fields']['assigned_user_name']['inline_edit'] = 0;
sorry i put the âContactâ instead of your Module name.
i tried editing
/custom/Extension/modules/time_MonthlyTimesheet/Ext/Vardefs/sugarfield_assigned_user.php
and repairing, but the repair gets stuck at
âRebuilding Relationshipsâ now :S
Hi,
Can you please show me your CRM at skype? This will be a simple approach to help you out.
Thanks a lot