- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 12:19 PM
I have a reference field Dept Contacts and another field called Department Cost Center which displays cost center information of the employee like 8900. I want to display Dept Contacts based on Cost Center information.
Like if Department Cost Center is 8900 then Dept Contacts field should only display contacts related to 8900 when user clicks on Dept Contacts field .
I'm stuck at doing this in a couple of ways but not sure I cant achieve this.
Can anyone help me with this?
Appreciate your response!
Thanks
Prashanth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2018 12:50 PM
I tried adding a script include in the script with a function for reference qualifier .Then it worked for me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 12:53 PM
You can add a reference qualifier on Dept Contacts table for ex.
javascript: 'cost_center='+current.u_dept_cost_center
assuming cost_center us the field name of cost center in Dept Contacts and u_dept_cost_center is the field name of Department Cost Center
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 01:57 PM
I tried adding javascript:'u_dept_contacts='+current.u_dept_cost_center;
but it didnt work .still it is showing the all the records.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 02:09 PM
What is the field name of Department Cost Center ?
And what is the field name of the cost center field in Dept Contacts table?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 02:20 PM
Department Cost Center - u_dept_cost_center
Dept Contacts is a field - u_dept_contacts-reference field
these are 2 individual fields on u_employee table .So on form view when a employee ABC has cost 8900 and when user clicks/selects on Dept.Contacts field it should only show dept contacts related to 8900.