Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Getting Record ID in DetailView.tpl of Custom Field Type

Getting Record ID in DetailView.tpl of Custom Field Type 1 month 5 days ago #75457

  • cherub-chum
  • cherub-chum's Avatar
  • Offline
  • Elite Member
  • One Stop Solution
  • Posts: 181
  • Thank you received: 35
  • Karma: 13
Sugar Fields folder include/SugarFields/Fields/* does not show any example where the DetailView.tpl of any field type can show the Current Record on which the field is shown. In the getDetailViewSmarty function for the field, i have tried to set Record ID like
$displayParams['record_id'] = $_REQUEST['record']
but when i access this in the DetailView.tpl of the field like
{{$displayParams.record_id}}
i only get record ID of the first record which is access after Repair/Rebuild. For the rest of the records, it stays the same.
Is there any way in SuiteCRM where i can get Record ID in the field DetailView.tpl?
Everything seems impossible, until its done.

Skype : cherubchum
The administrator has disabled public write access.
Time to create page: 0.117 seconds
Powered by Kunena Forum