Menu
Welcome, Guest
Username: Password: Remember me

TOPIC: How do you remove a relationship field's inline edit?

How do you remove a relationship field's inline edit? 2 weeks 3 days ago #91173

  • jalamani
  • jalamani's Avatar
  • Offline
  • Junior Member
  • Posts: 29
  • Karma: 0
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.
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 2 weeks 2 days ago #91190

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 11371
  • Thank you received: 1687
  • Karma: 386
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.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 2 weeks 2 hours ago #91251

  • suitecrm_developer
  • suitecrm_developer's Avatar
  • Offline
  • SuiteCRM Is My Life
  • 7 year experienced Freelancer PHP Developer
  • Posts: 391
  • Thank you received: 49
  • Karma: 7
Please do like this, you forget to add "FALSE"
$dictionary['time_MonthlyTimesheet']['fields']['time_monthlytimesheet_users']['inline_edit']=FALSE;
********* For any instant help and discussion skype me. **********
Skype ==>> sohaib.majeed44
********* I am also available for SuiteCRM development tasks. **********
::MY PROFESSIONAL PROFILE::
Upwork ==>> www.upwork.com/fl/sohaibmajeed?viewMode=1
Last Edit: 2 weeks 2 hours ago by suitecrm_developer.
The administrator has disabled public write access.
The following user(s) said Thank You: pgr

How do you remove a relationship field's inline edit? 1 week 6 days ago #91305

  • jalamani
  • jalamani's Avatar
  • Offline
  • Junior Member
  • Posts: 29
  • Karma: 0
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:
i.imgur.com/MFA64yc.png

Can I remove non-admin users ability to inline edit?
Last Edit: 1 week 6 days ago by jalamani. Reason: Additional question
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 1 week 6 days ago #91311

  • suitecrm_developer
  • suitecrm_developer's Avatar
  • Offline
  • SuiteCRM Is My Life
  • 7 year experienced Freelancer PHP Developer
  • Posts: 391
  • Thank you received: 49
  • Karma: 7
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
********* For any instant help and discussion skype me. **********
Skype ==>> sohaib.majeed44
********* I am also available for SuiteCRM development tasks. **********
::MY PROFESSIONAL PROFILE::
Upwork ==>> www.upwork.com/fl/sohaibmajeed?viewMode=1
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 1 week 3 days ago #91514

  • jalamani
  • jalamani's Avatar
  • Offline
  • Junior Member
  • Posts: 29
  • Karma: 0
Both didn't work but I'm just gonna restrict some users ability to see Listview.
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 1 week 3 days ago #91538

  • suitecrm_developer
  • suitecrm_developer's Avatar
  • Offline
  • SuiteCRM Is My Life
  • 7 year experienced Freelancer PHP Developer
  • Posts: 391
  • Thank you received: 49
  • Karma: 7
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
********* For any instant help and discussion skype me. **********
Skype ==>> sohaib.majeed44
********* I am also available for SuiteCRM development tasks. **********
::MY PROFESSIONAL PROFILE::
Upwork ==>> www.upwork.com/fl/sohaibmajeed?viewMode=1
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 1 week 1 day ago #91577

  • cherub-chum
  • cherub-chum's Avatar
  • Offline
  • SuiteCRM Is My Life
  • SuiteCRM Dev
  • Posts: 374
  • Thank you received: 62
  • Karma: 18
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.
Everything seems impossible, until it's done.

Contact on Skype for Work Related Queries : cherubchum
The administrator has disabled public write access.
The following user(s) said Thank You: suitecrm_developer

How do you remove a relationship field's inline edit? 1 week 1 day ago #91578

  • suitecrm_developer
  • suitecrm_developer's Avatar
  • Offline
  • SuiteCRM Is My Life
  • 7 year experienced Freelancer PHP Developer
  • Posts: 391
  • Thank you received: 49
  • Karma: 7
$dictionary['time_MonthlyTimesheet']['fields']['assigned_user_name']['inline_edit'] = 0;

sorry i put the "Contact" instead of your Module name.
********* For any instant help and discussion skype me. **********
Skype ==>> sohaib.majeed44
********* I am also available for SuiteCRM development tasks. **********
::MY PROFESSIONAL PROFILE::
Upwork ==>> www.upwork.com/fl/sohaibmajeed?viewMode=1
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 6 days 16 hours ago #91681

  • jalamani
  • jalamani's Avatar
  • Offline
  • Junior Member
  • Posts: 29
  • Karma: 0
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
The administrator has disabled public write access.

How do you remove a relationship field's inline edit? 4 days 20 hours ago #91767

  • suitecrm_developer
  • suitecrm_developer's Avatar
  • Offline
  • SuiteCRM Is My Life
  • 7 year experienced Freelancer PHP Developer
  • Posts: 391
  • Thank you received: 49
  • Karma: 7
Hi,
Can you please show me your CRM at skype? This will be a simple approach to help you out.

Thanks a lot
********* For any instant help and discussion skype me. **********
Skype ==>> sohaib.majeed44
********* I am also available for SuiteCRM development tasks. **********
::MY PROFESSIONAL PROFILE::
Upwork ==>> www.upwork.com/fl/sohaibmajeed?viewMode=1
The administrator has disabled public write access.
Time to create page: 0.203 seconds
Powered by Kunena Forum