Controlling Reference field records from client scripts

kiran_gottipati
Tera Contributor

Hi All,

 

We are using a custom reference field and applying an advanced reference qualifier that contains the "current." object. Like ("current.field1"). This is working fine in all the views, except on "Service Operations Workspace" - Incident "overview" tab. I mean the current. object not passing values if we don't save the record. Here we are using some other dependent dropdown fields in the Advanced reference qualifier code. When we are selecting the 1st and 2nd values, then going to select the 3rd reference field, from Native the 1st and 2nd field values are being passed to reference qualifier when we are using the current. object even without saving the 1st and 2nd values. Where as the same code is returning null, when we are doing the same operation from "Service Operations Workspace - Incident Overview tab". But when we save the 1st and 2nd field values, then if we try to select the 3rd field which is reference - then it showing the values as we are getting current. object.

 

Please let me know if there is a way we can override the reference qualifier from client scripts. So, I can write the code accordingly.

 

Thank you in advance.

3 REPLIES 3

Aniket15
ServiceNow Employee
ServiceNow Employee

Hey @kiran_gottipati  This could be due to the way overview tab is implemented. Overview tab gets the form field values from the gform on the details tab. If you select the Native 1st and 2nd value in details tab, and then check the 3rd field in inc overview tab it should work i guess. What i think here is that inc overview tab is not able to compute the reference qualifiers on dependent fields as it doesn't has its own gform data broker.

 

 

Hi @Aniket15 ,

 

Thank you for the reply, we raised a Hi case and they told its a know issue and created a Problem to fix it.

 

Regards,

Kiran

Hi.

 

Do you happen to know the problem or issue number?  Or if they have already done something for this?

 

Regards, Manu