yes, the field is getting company name.
Can you tell me where should I look for possibly conflicting scripts?

Hi,

Any UI policy on that table

Regards
Ankur

Hi, 

I was looking for any UI policy that could interrupt this script

g_form.setReadOnly('company', true)

but I couldn't find any. there's 9 of them working on incident table and none of them is touching company field. What can I do more? Where can I find out what's interrupting?
find_real_file.png

Cris P
Tera Guru

Hi there,

If you are getting a sys_id, you should be able to just pass that to it without specifying the sys_id column, i.e.:

companyRecord.get(companyId);

 

Also the line where you are doing this:

return companyRecord.name.getDisplayValue();

Can you try remove the getDisplayValue(); Since that field is just a string field anyway.

 

Other than that cannot see anythin else wrong with it. If you do a gs.info(companyRecord.name) (in your script include), what comes up in the logs?

Thanks for your answer, I'll keep that in mind. I think that what helped most was removing initialize() and moving all logic into one function on client script. But I must  dive deeper into those ajax functions to know exactly what is going out there.