Display Field Value Dynamically

Pintu2
Tera Expert

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

1 ACCEPTED SOLUTION

I tried adding a script include in the script with a function for reference qualifier .Then it worked for me.

View solution in original post

9 REPLIES 9

SanjivMeher
Kilo Patron
Kilo Patron

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.

I tried adding javascript:'u_dept_contacts='+current.u_dept_cost_center;

but it didnt work .still it is showing the all the records.

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.

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.